Fixes
source4/torture/rpc/netlogon.c:307: error: ctunullpointer: Null pointer dereference: p <--[cppcheck]
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer gary@catalyst.net.nz
uint32_t rid;
const char *machine_name;
const char *plain_pass;
- struct dcerpc_binding_handle *b = p->binding_handle;
+ struct dcerpc_binding_handle *b = NULL;
+
+ if (p == NULL) {
+ return false;
+ }
+
+ b = p->binding_handle;
machine_name = cli_credentials_get_workstation(machine_credentials);
torture_assert(tctx, machine_name != NULL, "machine_name");