blob: 9a2a12b42d1679a151e03fa02770d5f6d0aeaa87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
diff -urN cyrus-sasl-2.1.14/plugins/mysql.c cyrus-sasl-2.1.14-modified/plugins/mysql.c
--- cyrus-sasl-2.1.14/plugins/mysql.c 2003-05-14 13:46:02.000000000 -0500
+++ cyrus-sasl-2.1.14-modified/plugins/mysql.c 2003-07-09 00:49:42.000000000 -0500
@@ -323,9 +323,14 @@
if (settings->mysql_verbose)
sparams->utils->log(NULL, SASL_LOG_WARN,
- "mysql plugin try and connect to %s\n",
+ "mysql plugin trying to connect to %s\n",
cur_host);
+ if(mysql_init(&mysql) == NULL) {
+ sparams->utils->log(NULL, SASL_LOG_WARN,
+ "mysql plugin: could not execute mysql_init");
+ goto done;
+ }
sock = mysql_real_connect(&mysql,cur_host,
settings->mysql_user,
settings->mysql_passwd,
|