summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypbind
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-12-12 20:04:23 +0000
committermmcc <mmcc@openbsd.org>2015-12-12 20:04:23 +0000
commit580f3da4fadda2c0bc745db06bfb0d3eb1c601e8 (patch)
tree1e6630bac4af723d91c7977f221f6a8f3c92be5b /usr.sbin/ypbind
parentremove CA from pki and no longer allow specifying a CA with 'pki' keyword. (diff)
downloadwireguard-openbsd-580f3da4fadda2c0bc745db06bfb0d3eb1c601e8.tar.xz
wireguard-openbsd-580f3da4fadda2c0bc745db06bfb0d3eb1c601e8.zip
Remove NULL-checks before free().
Diffstat (limited to 'usr.sbin/ypbind')
-rw-r--r--usr.sbin/ypbind/ypbind.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c
index 5ab2140774a..e4b78df3d00 100644
--- a/usr.sbin/ypbind/ypbind.c
+++ b/usr.sbin/ypbind/ypbind.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypbind.c,v 1.64 2015/08/20 22:39:30 deraadt Exp $ */
+/* $OpenBSD: ypbind.c,v 1.65 2015/12/12 20:04:23 mmcc Exp $ */
/*
* Copyright (c) 1992, 1993, 1996, 1997, 1998 Theo de Raadt <deraadt@openbsd.org>
@@ -536,8 +536,7 @@ main(int argc, char *argv[])
extern void *__svc_fdset;
if (fdsrp == NULL || fdsrl != __svc_fdsetsize) {
- if (fdsrp)
- free(fdsrp);
+ free(fdsrp);
fdsrl = __svc_fdsetsize;
width = __svc_fdsetsize;