mirror of
https://github.com/PentHertz/OpenBTS.git
synced 2026-04-26 10:30:36 +00:00
Fix bug with command lengths over 127 from @Will-W
This commit is contained in:
parent
c85cc77113
commit
19a4966bff
1 changed files with 1 additions and 1 deletions
|
|
@ -202,7 +202,7 @@ void Parser::cliServer()
|
|||
close(i);
|
||||
continue; // go to next socket
|
||||
}
|
||||
if (len < (int) sizeof(len)) // should never get here
|
||||
if (nread < (int) sizeof(len)) // should never get here
|
||||
{
|
||||
char buf[BUFSIZ];
|
||||
sprintf(buf, "Unable to read complete length, s.b. %d bytes, got %d bytes\n", sizeof(len), len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue