diff options
author | rob <rob@openbsd.org> | 2018-07-04 10:05:56 +0000 |
---|---|---|
committer | rob <rob@openbsd.org> | 2018-07-04 10:05:56 +0000 |
commit | 53f0e4657ba3acf9bc5844cc1d8727c86b519654 (patch) | |
tree | 44fa58afc7f4b6e838512aa9ed19502b0ebd5a4d /usr.sbin/ldapd | |
parent | Add accessors for grid linedata member, for some future work. From Dan (diff) | |
download | wireguard-openbsd-53f0e4657ba3acf9bc5844cc1d8727c86b519654.tar.xz wireguard-openbsd-53f0e4657ba3acf9bc5844cc1d8727c86b519654.zip |
Avoid possible vfprintf NULL errors in ldap_unbind().
Ok benno@
Diffstat (limited to 'usr.sbin/ldapd')
-rw-r--r-- | usr.sbin/ldapd/ldape.c | 5 |
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 */ |