mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3:smbd: exit early if srv_send_smb fails
coverity fix. Signed-off-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
This commit is contained in:
parent
1c4b15aa5f
commit
1eaafead1e
@ -779,7 +779,9 @@ void reply_special(struct smbXsrv_connection *xconn, char *inbuf, size_t inbuf_s
|
||||
DEBUG(5,("init msg_type=0x%x msg_flags=0x%x\n",
|
||||
msg_type, msg_flags));
|
||||
|
||||
srv_send_smb(xconn, outbuf, false, 0, false, NULL);
|
||||
if (!srv_send_smb(xconn, outbuf, false, 0, false, NULL)) {
|
||||
exit_server_cleanly("reply_special: srv_send_smb failed.");
|
||||
}
|
||||
|
||||
if (CVAL(outbuf, 0) != 0x82) {
|
||||
exit_server_cleanly("invalid netbios session");
|
||||
|
Loading…
Reference in New Issue
Block a user