summaryrefslogtreecommitdiff
path: root/usr.sbin/authpf
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-08 07:11:54 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-08 07:11:54 +0000
commit1fbaa4f58490f20d3cd5396f8c2e7ee0160f62e7 (patch)
treec60524bbe845a200f946cda816019ddcf466b5f9 /usr.sbin/authpf
parentfea4adfc466d7858d58da345944b926f2c5ed642 (diff)
Remove a NULL-check before free().
Diffstat (limited to 'usr.sbin/authpf')
-rw-r--r--usr.sbin/authpf/authpf.c8
1 files changed, 3 insertions, 5 deletions
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);