[GRASS-SVN] r50496 - grass/trunk/lib/db/dbmi_base
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 27 07:26:00 EST 2012
Author: glynn
Date: 2012-01-27 04:26:00 -0800 (Fri, 27 Jan 2012)
New Revision: 50496
Modified:
grass/trunk/lib/db/dbmi_base/xdrprocedure.c
Log:
db__recv_procnum() shouldn't return DB_OK for errors or short reads
Modified: grass/trunk/lib/db/dbmi_base/xdrprocedure.c
===================================================================
--- grass/trunk/lib/db/dbmi_base/xdrprocedure.c 2012-01-27 12:22:41 UTC (rev 50495)
+++ grass/trunk/lib/db/dbmi_base/xdrprocedure.c 2012-01-27 12:26:00 UTC (rev 50496)
@@ -53,7 +53,7 @@
{
int stat = DB_OK;
- if (!db__recv(n, sizeof(*n)))
+ if (db__recv(n, sizeof(*n)) < sizeof(*n))
stat = DB_EOF;
return stat;
More information about the grass-commit
mailing list