]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-master: Aborting master auth request caused a crash.
authorTimo Sirainen <tss@iki.fi>
Wed, 7 Apr 2010 01:13:12 +0000 (04:13 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 7 Apr 2010 01:13:12 +0000 (04:13 +0300)
--HG--
branch : HEAD

src/lib-master/master-auth.c

index 97b23819f83c0ece453c6b5404d22a4cb635a7ba..d47796681b086779e58dc31722ad0238a1535d3d 100644 (file)
@@ -129,7 +129,9 @@ static void master_auth_connection_input(struct master_auth_connection *conn)
 
        if (conn->tag != reply->tag)
                i_error("Master sent reply with unknown tag %u", reply->tag);
-       else {
+       else if (conn->callback == NULL) {
+               /* request aborted */
+       } else {
                conn->callback(reply, conn->context);
                conn->callback = NULL;
        }