[dovecot-cvs] dovecot/src/pop3 client.c,1.6,1.7
cras at procontrol.fi
cras at procontrol.fi
Sat May 3 20:31:15 EEST 2003
Update of /home/cvs/dovecot/src/pop3
In directory danu:/tmp/cvs-serv6825
Modified Files:
client.c
Log Message:
If no error is set, give "BUG: Unknown error" rather than try to print NULL
which crashes in some systems.
Index: client.c
===================================================================
RCS file: /home/cvs/dovecot/src/pop3/client.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- client.c 16 Apr 2003 14:24:12 -0000 1.6
+++ client.c 3 May 2003 16:31:12 -0000 1.7
@@ -189,7 +189,8 @@
const char *error;
error = client->storage->get_last_error(client->storage, NULL);
- client_send_line(client, "-ERR %s", error);
+ client_send_line(client, "-ERR %s", error != NULL ? error :
+ "BUG: Unknown error");
}
static void client_input(void *context)
More information about the dovecot-cvs
mailing list