summaryrefslogtreecommitdiffstats
path: root/source/libads
diff options
context:
space:
mode:
Diffstat (limited to 'source/libads')
-rw-r--r--source/libads/sasl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/libads/sasl.c b/source/libads/sasl.c
index eb29c71fce2..1b55453cac9 100644
--- a/source/libads/sasl.c
+++ b/source/libads/sasl.c
@@ -171,8 +171,7 @@ ADS_STATUS ads_sasl_gssapi_bind(ADS_STRUCT *ads)
*p++ = max_msg_size>>16;
*p++ = max_msg_size>>8;
*p++ = max_msg_size;
- snprintf(p, strlen(ads->bind_path)+1, "dn:%s", ads->bind_path);
- p += strlen(ads->bind_path);
+ snprintf(p, strlen(ads->bind_path)+4, "dn:%s", ads->bind_path);
output_token.length = strlen(ads->bind_path) + 8;