There might be a case where get_sorted_dc_list can be called with null
arguments, resulting in the SIGSEGV.
In samba/source/libads/ldap.c (function ads_find_dc) :
-----------------------------------------------------------
if ( !got_realm && !lp_disable_netbios() ) {
c_realm = ads->server.workgroup;
if (!c_realm || !*c_realm) {
if ( use_own_domain )
c_realm = lp_workgroup();
}
if ( !c_realm || !*c_realm ) {
DEBUG(0,("ads_find_dc: no realm or workgroup! Don't know what to do\n"));
return NT_STATUS_INVALID_PARAMETER; /* rather need MISSING_PARAMETER ... */
}
}
realm = c_realm;
[...]
status = get_sorted_dc_list(realm, sitename, &ip_list, &count, got_realm);
-----------------------------------------------------------
The catch for the case *c_realm=null is inside the "if ( !got_realm &&
!lp_disable_netbios() )" test so if *c_realm=null, got_realm is false
and lp_disable_netbios() is true, you get SIGSEGV down the line...
--
lwinet crashes when joining a windows domain with likewise
https://bugs.launchpad.net/bugs/277492
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs