Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37853023
en ru br
ALT Linux repos
S:0.3.4.1-alt4

Group :: System/Servers
RPM: bld

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 01-fix_potential_core_dump
Download


#! /bin/sh /usr/share/dpatch/dpatch-run
## 01-fix_potential_core_dump.dpatch by Oleg Milaenko <omnix@debian.org.ua>
##
## 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;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin