Mercurial > dovecot > original-hg > dovecot-1.2
diff src/imap/cmd-x-cancel.c @ 7431:33d8adcc2d44 HEAD
client_command_free()/cancel(): Take pointer-to-pointer parameter and set it
to NULL to make sure it's not accessed again.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 20 Mar 2008 16:26:27 +0200 |
parents | 7ed926ed7aa4 |
children | b9faf4db2a9f |
line wrap: on
line diff
--- a/src/imap/cmd-x-cancel.c Thu Mar 20 15:42:57 2008 +0200 +++ b/src/imap/cmd-x-cancel.c Thu Mar 20 16:26:27 2008 +0200 @@ -16,7 +16,7 @@ for (; cancel_cmd != NULL; cancel_cmd = cancel_cmd->next) { if (cancel_cmd->tag != NULL && cancel_cmd != cmd && strcmp(cancel_cmd->tag, tag) == 0) { - client_command_cancel(cancel_cmd); + client_command_cancel(&cancel_cmd); client_send_tagline(cmd, "OK Command cancelled."); return TRUE; }