mrc0mmand / rpms / openldap

Forked from rpms/openldap 3 years ago
Clone

Blame SOURCES/openldap-loglevel2bvarray.patch

767ab2
From 4313b91b0bc2fe6585656cd69a03f9755b5af3c4 Mon Sep 17 00:00:00 2001
767ab2
From: Jan Synacek <jsynacek@redhat.com>
767ab2
Date: Wed, 29 May 2013 10:21:40 +0200
767ab2
Subject: [PATCH] Fix loglevel2bvarray
767ab2
767ab2
---
767ab2
 servers/slapd/bconfig.c | 4 ++++
767ab2
 1 file changed, 4 insertions(+)
767ab2
767ab2
diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c
767ab2
index 4e1f1b5..def6daf 100644
767ab2
--- a/servers/slapd/bconfig.c
767ab2
+++ b/servers/slapd/bconfig.c
767ab2
@@ -3622,6 +3622,10 @@ loglevel2bvarray( int l, BerVarray *bva )
767ab2
 		loglevel_init();
767ab2
 	}
767ab2
 
767ab2
+	if ( l == 0 ) {
767ab2
+		return value_add_one( bva, ber_bvstr( "0" ) );
767ab2
+	}
767ab2
+
767ab2
 	return mask_to_verbs( loglevel_ops, l, bva );
767ab2
 }
767ab2
 
767ab2
-- 
767ab2
1.8.1.4
767ab2