summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/auth/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/auth/session.c b/source4/libcli/auth/session.c
index fdb6462b00..91eee9ce81 100644
--- a/source4/libcli/auth/session.c
+++ b/source4/libcli/auth/session.c
@@ -124,8 +124,8 @@ char *sess_decrypt_string(DATA_BLOB *blob, const DATA_BLOB *session_key)
IVAL(out.data, 4)));
return NULL;
}
-
- ret = strndup(out.data+8, slen);
+
+ ret = strndup((const char *)(out.data+8), slen);
data_blob_free(&out);