Fix dnssec indication variable when used from verify-callout smtp:commect event
authorJeremy Harris <jgh146exb@wizmail.org>
Tue, 4 Nov 2014 15:13:00 +0000 (15:13 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Tue, 4 Nov 2014 15:13:00 +0000 (15:13 +0000)
src/src/verify.c

index 82dc5cc722f322a8e933b6470600ba22d9ec1b7b..b74d6ab5e6b40049ba8715688eff40bb4004a882 100644 (file)
@@ -584,12 +584,16 @@ else
         goto RESPONSE_FAILED;
 
 #ifdef EXPERIMENTAL_EVENT
+      lookup_dnssec_authenticated = host->dnssec==DS_YES ? US"yes"
+       : host->dnssec==DS_NO ? US"no" : NULL;
       if (event_raise(addr->transport->event_action,
                            US"smtp:connect", responsebuffer))
        {
+       lookup_dnssec_authenticated = NULL;
        /* Logging?  Debug? */
        goto RESPONSE_FAILED;
        }
+      lookup_dnssec_authenticated = NULL;
 #endif
       }