]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: client: Make smtp_client_transaction_destroy(NULL) a no-op.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 14 Oct 2018 11:43:42 +0000 (13:43 +0200)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Mon, 15 Oct 2018 23:33:43 +0000 (01:33 +0200)
src/lib-smtp/smtp-client-transaction.c

index 8f1a0f1118189885242b248e213eebd5cea56b5b..bd683e85277eaff1ec46af76a51ba0250783a586 100644 (file)
@@ -434,6 +434,9 @@ void smtp_client_transaction_destroy(struct smtp_client_transaction **_trans)
 
        *_trans = NULL;
 
+       if (trans == NULL)
+               return;
+
        smtp_client_transaction_ref(trans);
        smtp_client_transaction_abort(trans);