summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorrob <rob@cvs.openbsd.org>2018-07-04 10:05:57 +0000
committerrob <rob@cvs.openbsd.org>2018-07-04 10:05:57 +0000
commite342f867785e31816d6c124ae657bb193cf2e2a3 (patch)
tree8b53a30d1ffca0ac853b1e11db8a9707e8fe1526 /usr.sbin
parent56d236785884b00a6cbe5e301286e8a4c27f9041 (diff)
Avoid possible vfprintf NULL errors in ldap_unbind().
Ok benno@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ldapd/ldape.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ldapd/ldape.c b/usr.sbin/ldapd/ldape.c
index 4e32683be2e..0bdb6191ed4 100644
--- a/usr.sbin/ldapd/ldape.c
+++ b/usr.sbin/ldapd/ldape.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldape.c,v 1.27 2018/05/15 11:19:21 reyk Exp $ */
+/* $OpenBSD: ldape.c,v 1.28 2018/07/04 10:05:56 rob Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se>
@@ -229,7 +229,8 @@ ldap_abandon(struct request *req)
int
ldap_unbind(struct request *req)
{
- log_debug("current bind dn = %s", req->conn->binddn);
+ log_debug("current bind dn = %s",
+ req->conn->binddn == NULL ? "" : req->conn->binddn);
conn_disconnect(req->conn);
request_free(req);
return -1; /* don't send any response */