Memory Management: drop another variable ($callout_address) as it goes out of scope.
authorJeremy Harris <jgh146exb@wizmail.org>
Tue, 28 Feb 2017 23:15:41 +0000 (23:15 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Tue, 28 Feb 2017 23:15:41 +0000 (23:15 +0000)
src/src/daemon.c
src/src/malware.c

index e9ecbe7d6e1106a096ef3e3be416a38708593d12..d7f57923542954bd336540c2145334f414cdf654 100644 (file)
@@ -570,6 +570,7 @@ if (pid == 0)
     deliver_host_address = deliver_host =
     deliver_domain_orig = deliver_localpart_orig = NULL;
     dnslist_domain = dnslist_matched = NULL;
+    callout_address = NULL;
 #ifndef DISABLE_DKIM
     dkim_cur_signer = NULL;
 #endif
index 547bc26e6dd9e3db905d33f534b24a581ff1dc32..549422ebb93661c39ff07fc44921c4be101cd103 100644 (file)
@@ -503,8 +503,8 @@ if (!malware_ok)
       break;
     switch(scanent->conn)
     {
-    case MC_TCP:  sock = ip_tcpsocket(scanner_options, &errstr, 5);      break;
-    case MC_UNIX: sock = ip_unixsocket(scanner_options, &errstr);        break;
+    case MC_TCP:  sock = ip_tcpsocket(scanner_options, &errstr, 5);    break;
+    case MC_UNIX: sock = ip_unixsocket(scanner_options, &errstr);      break;
     case MC_STRM: sock = ip_streamsocket(scanner_options, &errstr, 5);  break;
     default: /* compiler quietening */ break;
     }