dovecot-2.0: mysql: Fixed crashing on invalid queries.
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 12 17:07:43 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/6599d3d52c76
changeset: 11283:6599d3d52c76
user: Timo Sirainen <tss at iki.fi>
date: Wed May 12 16:07:40 2010 +0200
description:
mysql: Fixed crashing on invalid queries.
diffstat:
src/lib-sql/driver-mysql.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 70cfc89a3936 -r 6599d3d52c76 src/lib-sql/driver-mysql.c
--- a/src/lib-sql/driver-mysql.c Wed May 12 15:23:48 2010 +0200
+++ b/src/lib-sql/driver-mysql.c Wed May 12 16:07:40 2010 +0200
@@ -282,7 +282,6 @@
result = i_new(struct mysql_result, 1);
result->api = driver_mysql_result;
- result->api.db = _db;
switch (driver_mysql_do_query(db, query)) {
case 0:
@@ -315,6 +314,7 @@
break;
}
+ result->api.db = _db;
result->api.refcount = 1;
return &result->api;
}
More information about the dovecot-cvs
mailing list