1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4:lib:socket: skip extra data in interpret_interface()

This is currently smbd-specific.
No need to duplicate the extended parsing
while these functions have not been merged yet.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Michael Adam 2016-01-25 16:22:57 +01:00
parent 8284b34f95
commit 9fcf87419f

View File

@ -178,6 +178,15 @@ static void interpret_interface(TALLOC_CTX *mem_ctx,
return;
}
p = strchr_m(token, ';');
if (p != NULL) {
/*
* skip smbd-specific extra data:
* link speed, capabilities, and interface index
*/
*p = 0;
}
/* maybe it is a DNS name */
p = strchr_m(token,'/');
if (p == NULL) {