From 02d83d8fd4d21825110fd7da1ccb570a26e66ca6 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 23 Sep 2011 06:08:51 +0200 Subject: s3:smbd: don't call smbd_terminate_connection in smb2_validate_message_id() (bug #8476) Only return false and the caller will terminate the connection. metze --- source3/smbd/smb2_server.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 0ffeb4818d..368f342dd5 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -323,8 +323,9 @@ static bool smb2_validate_message_id(struct smbd_server_connection *sconn, } if (sconn->smb2.credits_granted == 0) { - smbd_server_connection_terminate(sconn, "smb2_validate_message_id: " - "terminating connection: client used more credits than granted\n"); + DEBUG(0,("smb2_validate_message_id: client used more " + "credits than granted message_id (%llu)\n", + (unsigned long long)message_id)); return false; } -- cgit