[GRASS-SVN] r50503 - grass/branches/develbranch_6/lib/db/dbmi_base
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 27 16:17:10 EST 2012
Author: hamish
Date: 2012-01-27 13:17:10 -0800 (Fri, 27 Jan 2012)
New Revision: 50503
Modified:
grass/branches/develbranch_6/lib/db/dbmi_base/xdrprocedure.c
Log:
db__recv_procnum() shouldn't return DB_OK for errors or short reads (merge from trunk)
Modified: grass/branches/develbranch_6/lib/db/dbmi_base/xdrprocedure.c
===================================================================
--- grass/branches/develbranch_6/lib/db/dbmi_base/xdrprocedure.c 2012-01-27 21:00:24 UTC (rev 50502)
+++ grass/branches/develbranch_6/lib/db/dbmi_base/xdrprocedure.c 2012-01-27 21:17:10 UTC (rev 50503)
@@ -32,7 +32,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