Logic change, but correct error cleanup - jump to new 'fail:' label.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Isaac Boukris <iboukris@samba.org>
ss_list,
return_count)) {
status = NT_STATUS_NO_MEMORY;
+ goto fail;
}
goto done;
}
ss_list,
return_count)) {
status = NT_STATUS_NO_MEMORY;
+ goto fail;
}
goto done;
}
ss_list,
return_count)) {
status = NT_STATUS_NO_MEMORY;
+ goto fail;
}
goto done;
}
ss_list,
return_count)) {
status = NT_STATUS_NO_MEMORY;
+ goto fail;
}
goto done;
}
/* All of the resolve_* functions above have returned false. */
+ fail:
+
TALLOC_FREE(frame);
SAFE_FREE(*return_iplist);
*return_count = 0;