[BACK]Return to patch-src_server.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / sysutils / burp / patches

File: [cvs.NetBSD.org] / pkgsrc / sysutils / burp / patches / patch-src_server.c (download)

Revision 1.1, Sat Dec 17 14:21:27 2016 UTC (7 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, HEAD

Fix pointer abuse.

$NetBSD: patch-src_server.c,v 1.1 2016/12/17 14:21:27 joerg Exp $

Check pointer for Non-NULL-ness, not for positivity.

--- src/server.c.orig	2016-12-15 17:48:47.698862968 +0000
+++ src/server.c
@@ -543,7 +543,7 @@ static int do_backup_server(const char *
 			working, current, currentdata,
 			finishing, cconf, client,
 			p1cntr, cntr);
-		if(!ret && cconf->keep>0)
+		if(!ret && cconf->keep)
 			ret=remove_old_backups(basedir, cconf, client);
 	}