From b80d1dd37e4417a110602712fa642060de4a067d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 16 Jul 2011 20:36:50 +0000 Subject: [PATCH] checkret --- contrib/timeout_watchdog.c | 2 +- src/datacache/plugin_datacache_sqlite.c | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/contrib/timeout_watchdog.c b/contrib/timeout_watchdog.c index 5fbe7e339..a33f67adc 100644 --- a/contrib/timeout_watchdog.c +++ b/contrib/timeout_watchdog.c @@ -94,7 +94,7 @@ main (int argc, char *argv[]) { /* int setpgrp(pid_t pid, pid_t pgid); is not working on this machine */ //setpgrp (0, pid_t gpid); - if (-1 !- gpid) + if (-1 != gpid) setpgid (0, gpid); execvp (argv[2], &argv[2]); exit (1); diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c index 4c429c1b4..eb24f5423 100644 --- a/src/datacache/plugin_datacache_sqlite.c +++ b/src/datacache/plugin_datacache_sqlite.c @@ -203,8 +203,16 @@ sqlite_plugin_get (void *cls, sqlite3_errmsg (plugin->dbh)); return 0; } - sqlite3_bind_blob (stmt, 1, key, sizeof (GNUNET_HashCode), - SQLITE_TRANSIENT); + if (GNUNET_OK != + sqlite3_bind_blob (stmt, 1, key, sizeof (GNUNET_HashCode), + SQLITE_TRANSIENT)) + { + LOG_SQLITE (plugin->dbh, + GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, + "sqlite3_bind_xxx"); + sqlite3_finalize (stmt); + return 0; + } sqlite3_bind_int (stmt, 2, type); ntime = (int64_t) now.abs_value; GNUNET_assert (ntime >= 0); -- 2.25.1