Don't update out params when unsuccessful
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
struct ip_service *iplist = NULL;
if (orig_count == 0 || ss_list == NULL) {
- *count_out = 0;
return false;
}
real_count++;
}
if (real_count == 0) {
- *count_out = 0;
return false;
}
iplist = SMB_MALLOC_ARRAY(struct ip_service, real_count);
if (iplist == NULL) {
DBG_ERR("malloc failed for %zu enetries!\n", real_count);
- *count_out = 0;
return false;
}