diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/process.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index ed19e7f42b..30dbc0c6dd 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -3037,7 +3037,9 @@ static NTSTATUS smbd_register_ips(struct smbd_server_connection *sconn, return NT_STATUS_NO_MEMORY; } - client_socket_addr(sconn->sock, tmp_addr, sizeof(tmp_addr)); + if (client_socket_addr(sconn->sock, tmp_addr, sizeof(tmp_addr)) == NULL) { + return NT_STATUS_NO_MEMORY; + } addr = talloc_strdup(cconn, tmp_addr); if (addr == NULL) { return NT_STATUS_NO_MEMORY; |