mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r17901: Stanford checker fix. cookie here can't be null or we'd
deref null. Make interface explicit.
Jeremy.
(This used to be commit 4e99606ec1
)
This commit is contained in:
parent
a08ca7a0a0
commit
9f0c2827a4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user