summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/lpr/lpd/lpd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c
index c457d41c6f8..c68b36e6277 100644
--- a/usr.sbin/lpr/lpd/lpd.c
+++ b/usr.sbin/lpr/lpd/lpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpd.c,v 1.62 2015/10/28 13:25:55 millert Exp $ */
+/* $OpenBSD: lpd.c,v 1.63 2015/12/19 19:59:07 mmcc Exp $ */
/* $NetBSD: lpd.c,v 1.33 2002/01/21 14:42:29 wiz Exp $ */
/*
@@ -790,8 +790,7 @@ socksetup(int af, int options, const char *port)
if (socks == NULL || *socks == 0) {
syslog(LOG_ERR, "Couldn't bind to any socket");
- if (socks != NULL)
- free(socks);
+ free(socks);
mcleanup(0);
}
return(socks);