From f0b0fe9f94fbb7497982e3c2a3e117d4b40650db Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 19 Oct 1999 12:15:42 +0000 Subject: [PATCH] Fix stupid "got of 0 so far" debug message after ber_get_next. --- servers/slapd/connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 483c7d68b2..57a6280d82 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -927,7 +927,8 @@ connection_input( ber_pvt_sb_get_desc( conn->c_sb ), err, STRERROR(err) ); Debug( LDAP_DEBUG_TRACE, "\t*** got %ld of %lu so far\n", - (long)(conn->c_currentber->ber_rwptr - conn->c_currentber->ber_buf), + conn->c_currentber->ber_buf ? + (long)(conn->c_currentber->ber_rwptr - conn->c_currentber->ber_buf) : 0, conn->c_currentber->ber_len, 0 ); if ( err != EWOULDBLOCK && err != EAGAIN ) { -- 2.39.5