summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bef7167)
raw | patch | inline | side by side (parent: bef7167)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 19 Feb 2013 17:39:46 +0000 (18:39 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 19 Feb 2013 17:39:46 +0000 (18:39 +0100) |
Apparently, the libdbi functions don't check for that condition.
src/utils/dbi.c | patch | blob | history |
diff --git a/src/utils/dbi.c b/src/utils/dbi.c
index ee2280ce939e6bb9f61cdde27ba3cfa5415d5028..ea846b0006c545e1a3e25b4196cd1bc23f5b5904 100644 (file)
--- a/src/utils/dbi.c
+++ b/src/utils/dbi.c
int status;
- if ((! client) || (! query))
+ if ((! client) || (! client->conn) || (! query))
return -1;
res = dbi_conn_query(client->conn, query);