summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypldap
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ypldap')
-rw-r--r--usr.sbin/ypldap/aldap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/ypldap/aldap.c b/usr.sbin/ypldap/aldap.c
index 03e5224..7062507 100644
--- a/usr.sbin/ypldap/aldap.c
+++ b/usr.sbin/ypldap/aldap.c
@@ -353,8 +353,7 @@ aldap_parse_page_control(struct ber_element *control, size_t len)
void
aldap_freepage(struct aldap_page_control *page)
{
- if (page->cookie)
- free(page->cookie);
+ free(page->cookie);
free(page);
}
OpenPOWER on IntegriCloud