From 1fbaa4f58490f20d3cd5396f8c2e7ee0160f62e7 Mon Sep 17 00:00:00 2001 From: mmcc Date: Tue, 8 Dec 2015 07:11:54 +0000 Subject: Remove a NULL-check before free(). --- usr.sbin/authpf/authpf.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'usr.sbin/authpf') diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c index ec09f31a23e..44054a80b4b 100644 --- a/usr.sbin/authpf/authpf.c +++ b/usr.sbin/authpf/authpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authpf.c,v 1.123 2015/01/21 21:50:32 deraadt Exp $ */ +/* $OpenBSD: authpf.c,v 1.124 2015/12/08 07:11:53 mmcc Exp $ */ /* * Copyright (C) 1998 - 2007 Bob Beck (beck@openbsd.org). @@ -546,10 +546,8 @@ allowed_luser(struct passwd *pw) strcmp("*", buf) == 0; } - if (lbuf != NULL) { - free(lbuf); - lbuf = NULL; - } + free(lbuf); + lbuf = NULL; if (matched) { fclose(f); -- cgit v1.2.3