1
0
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:
Jelmer Vernooij
2004-10-24 22:46:47 +00:00
committed by Gerald (Jerry) Carter
parent 575e380ab4
commit 18582083af
8 changed files with 158 additions and 95 deletions

View File

@@ -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;