Skip to content
Snippets Groups Projects
Commit 98bd6c91 authored by deuce's avatar deuce
Browse files

More fixes for telnet interpretation.

Was using the wrong condition to test if we should start interpreting from
the start of the string... would cause problems for strings ending in a CR
parent d9e0adac
Branches
Tags
No related merge requests found
......@@ -109,12 +109,12 @@ BYTE* telnet_interpret(BYTE* inbuf, int inlen, BYTE* outbuf, int *outlen)
}
}
if(!telnet_cmdlen && first_int==NULL) {
if(telnet_cmdlen==0 && first_int==NULL) {
*outlen=inlen;
return(inbuf); /* no interpretation needed */
}
if(first_int!=NULL) {
if(telnet_cmdlen==0 /* If we haven't returned and telnet_cmdlen==0 then first_int is not NULL */ ) {
*outlen=first_int-inbuf;
memcpy(outbuf, inbuf, *outlen);
} else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment