#! /bin/sh /usr/share/dpatch/dpatch-run ## 01-fix_potential_core_dump.dpatch by Oleg Milaenko ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix Potential Core dump @DPATCH@ diff -urNad bld-0.3.4.1~/postfix_policy.c bld-0.3.4.1/postfix_policy.c --- bld-0.3.4.1~/postfix_policy.c 2009-02-14 12:40:19.000000000 +0000 +++ bld-0.3.4.1/postfix_policy.c 2009-02-14 12:54:29.000000000 +0000 @@ -128,7 +128,7 @@ printf("action=%s\n\n", action); fflush(stdout); if (verbose) - syslog(LOG_INFO, "%s: %s", ip, action); + syslog(LOG_INFO, "%s: %s", ip ? ip : "(null)", action); if (ip) free(ip); break;