summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/smbldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c
index 8f6394ea92..da409dce04 100644
--- a/source3/lib/smbldap.c
+++ b/source3/lib/smbldap.c
@@ -548,7 +548,7 @@ static int smbldap_open_connection (struct smbldap_state *ldap_state)
p += 4;
}
- sscanf(p, "%10[^:]://%254s[^:]:%d", protocol, host, &port);
+ sscanf(p, "%10[^:]://%254[^:/]:%d", protocol, host, &port);
if (port == 0) {
if (strequal(protocol, "ldap")) {