lib-util: rename memdup to smb_memdup and fix all callers
[vlendec/samba-autobuild/.git] / source3 / smbd / seal.c
index bb9bb083503603f42c8db05822dc4d58ea686034..273013b4279e44d9967c27e9d5032d152b23fd11 100644 (file)
@@ -245,7 +245,7 @@ NTSTATUS srv_request_encryption_setup(connection_struct *conn,
 
        /* Return the raw blob. */
        SAFE_FREE(*ppdata);
-       *ppdata = (unsigned char *)memdup(response.data, response.length);
+       *ppdata = (unsigned char *)smb_memdup(response.data, response.length);
        if ((*ppdata) == NULL && response.length > 0)
                return NT_STATUS_NO_MEMORY;
        *p_data_size = response.length;