1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-31 12:23:52 +03:00

r11621: some minor fixes from comments by metze

This commit is contained in:
Andrew Tridgell
2005-11-10 00:36:53 +00:00
committed by Gerald (Jerry) Carter
parent 1d29ad2a27
commit 6ab8082234
2 changed files with 7 additions and 3 deletions

View File

@@ -662,6 +662,10 @@ static void smbsrv_accept(struct stream_connection *conn)
smb_conn->negotiate.calling_name = NULL;
smb_conn->packet = packet_init(smb_conn);
if (smb_conn->packet == NULL) {
stream_terminate_connection(conn, "out of memory");
return;
}
packet_set_private(smb_conn->packet, smb_conn);
packet_set_socket(smb_conn->packet, conn->socket);
packet_set_callback(smb_conn->packet, receive_smb_request);