summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/process.c4
-rw-r--r--source3/smbd/reply.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index a0bfdbb2a2..cf01cd2cf5 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -254,7 +254,7 @@ BOOL receive_next_smb(char *inbuf, int bufsize, int timeout)
do {
ret = receive_message_or_smb(inbuf,bufsize,timeout);
- got_keepalive = (ret && (CVAL(inbuf,0) == 0x85));
+ got_keepalive = (ret && (CVAL(inbuf,0) == SMBkeepalive));
} while (ret && got_keepalive);
return ret;
@@ -867,7 +867,7 @@ void process_smb(char *inbuf, char *outbuf)
if (msg_type == 0)
show_msg(inbuf);
- else if(msg_type == 0x85)
+ else if(msg_type == SMBkeepalive)
return; /* Keepalive packet. */
nread = construct_reply(inbuf,outbuf,nread,max_send);
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 845fabda92..852a2d867b 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -122,7 +122,7 @@ int reply_special(char *inbuf,char *outbuf)
case 0x89: /* session keepalive request
(some old clients produce this?) */
- CVAL(outbuf,0) = 0x85;
+ CVAL(outbuf,0) = SMBkeepalive;
CVAL(outbuf,3) = 0;
break;
@@ -132,7 +132,7 @@ int reply_special(char *inbuf,char *outbuf)
DEBUG(0,("Unexpected session response\n"));
break;
- case 0x85: /* session keepalive */
+ case SMBkeepalive: /* session keepalive */
default:
return(0);
}