From: Jeremy Allison Date: Tue, 29 Aug 2006 01:04:25 +0000 (+0000) Subject: r17901: Stanford checker fix. cookie here can't be null or we'd X-Git-Tag: samba-4.0.0alpha6~801^2~7788 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f0c2827a4e08cb386453d1ce740f4b559b557fd;p=thirdparty%2Fsamba.git r17901: Stanford checker fix. cookie here can't be null or we'd deref null. Make interface explicit. Jeremy. (This used to be commit 4e99606ec16b978a76219b5362a23a7b06ee5468) --- diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 402e37b3c05..c6d1fc9c603 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -506,7 +506,7 @@ ADS_STATUS ads_do_paged_search_args(ADS_STRUCT *ads, const char *bind_path, } cookie_be = ber_alloc_t(LBER_USE_DER); - if (cookie && *cookie) { + if (*cookie) { ber_printf(cookie_be, "{iO}", (ber_int_t) 1000, *cookie); ber_bvfree(*cookie); /* don't need it from last time */ *cookie = NULL;