From e342f867785e31816d6c124ae657bb193cf2e2a3 Mon Sep 17 00:00:00 2001 From: rob Date: Wed, 4 Jul 2018 10:05:57 +0000 Subject: Avoid possible vfprintf NULL errors in ldap_unbind(). Ok benno@ --- usr.sbin/ldapd/ldape.c | 5 +++-- 1 file 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 @@ -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 */ -- cgit v1.2.3