summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypldap
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2015-12-15 15:41:09 +0000
committeraraujo <araujo@FreeBSD.org>2015-12-15 15:41:09 +0000
commit7e0d3844ca8f1f6eaaad7c08d37c89132debebb3 (patch)
treed4c0a06b8a3264098256db6f770675ef9c42b2e2 /usr.sbin/ypldap
parent99a0984f8bab31482ce2826097face2119a304e6 (diff)
downloadFreeBSD-src-7e0d3844ca8f1f6eaaad7c08d37c89132debebb3.zip
FreeBSD-src-7e0d3844ca8f1f6eaaad7c08d37c89132debebb3.tar.gz
Remove wrong header and the NULL check before free().
Approved by: bapt (mentor) Obtained from: OpenBSD Differential Revision: https://reviews.freebsd.org/D4548
Diffstat (limited to 'usr.sbin/ypldap')
-rw-r--r--usr.sbin/ypldap/ber.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/ypldap/ber.c b/usr.sbin/ypldap/ber.c
index a2950dc..540df69 100644
--- a/usr.sbin/ypldap/ber.c
+++ b/usr.sbin/ypldap/ber.c
@@ -27,7 +27,6 @@
#include <err.h> /* XXX for debug output */
#include <stdio.h> /* XXX for debug output */
#include <string.h>
-#include <strings.h>
#include <unistd.h>
#include <stdarg.h>
@@ -1219,8 +1218,7 @@ ber_set_application(struct ber *b, unsigned long (*cb)(struct ber_element *))
void
ber_free(struct ber *b)
{
- if (b->br_wbuf != NULL)
- free (b->br_wbuf);
+ free(b->br_wbuf);
}
static ssize_t
OpenPOWER on IntegriCloud