diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/libsmbclient.c | 3 | ||||
-rw-r--r-- | source3/smbd/process.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c index ff434d275a..dbc51d168e 100644 --- a/source3/libsmb/libsmbclient.c +++ b/source3/libsmb/libsmbclient.c @@ -2671,7 +2671,8 @@ smbc_opendir_ctx(SMBCCTX *context, return NULL; } - ip_list = memdup(&server_addr, sizeof(server_addr)); + ip_list = (struct ip_service *)memdup( + &server_addr, sizeof(server_addr)); if (ip_list == NULL) { errno = ENOMEM; return NULL; diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 24497de69a..5601a7fb6e 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -190,7 +190,7 @@ ssize_t receive_smb_raw_talloc_partial_read(TALLOC_CTX *mem_ctx, /* Copy the header we've written. */ - *buffer = TALLOC_MEMDUP(mem_ctx, + *buffer = (char *)TALLOC_MEMDUP(mem_ctx, writeX_header, sizeof(writeX_header)); |