Otherwise we get a segfault when the NULL creds are dereferenced in cli_credentials_is_anonymous()
$ python3 -c"from samba.dcerpc.dnsserver import dnsserver; d = dnsserver('addc')"
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Jul 22 23:37:57 UTC 2019 on sn-devel-184
epm_creds = credentials;
break;
default:
+ DBG_INFO("Unknown transport; continuing with anon, no endpoint.\n");
+ epm_creds = cli_credentials_init_anon(s);
+ if (composite_nomem(epm_creds, c)){
+ return c;
+ }
break;
}