mirror of
https://github.com/samba-team/samba.git
synced 2025-10-29 04:23:51 +03:00
r3167: Add a member 'endpoint' to the dcerpc_binding struct to use instead of
options[0].
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
575e380ab4
commit
18582083af
@@ -33,15 +33,11 @@ static BOOL endpoints_match(const struct dcerpc_binding *ep1,
|
||||
return False;
|
||||
}
|
||||
|
||||
if (!ep1->options || !ep2->options) {
|
||||
return ep1->options == ep2->options;
|
||||
if (!ep1->endpoint || !ep2->endpoint) {
|
||||
return ep1->endpoint == ep2->endpoint;
|
||||
}
|
||||
|
||||
if (!ep1->options[0] || !ep2->options[0]) {
|
||||
return ep1->options[0] == ep2->options[0];
|
||||
}
|
||||
|
||||
if (strcasecmp(ep1->options[0], ep2->options[0]) != 0)
|
||||
if (strcasecmp(ep1->endpoint, ep2->endpoint) != 0)
|
||||
return False;
|
||||
|
||||
return True;
|
||||
|
||||
Reference in New Issue
Block a user