* server.c (handle_query): Correct length check.

This commit is contained in:
Daniel Jacobowitz 2008-02-17 15:26:17 +00:00
parent 3f001e8487
commit d41b6bb462
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
* server.c (handle_query): Correct length check.
2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
* win32-low.c (do_initial_child_stuff): Add process handle

View File

@ -649,7 +649,7 @@ handle_query (char *own_buf, int packet_len, int *new_packet_len_p)
char *mon = malloc (PBUFSIZ);
int len = strlen (own_buf + 6);
if ((len % 1) != 0 || unhexify (mon, own_buf + 6, len / 2) != len / 2)
if ((len % 2) != 0 || unhexify (mon, own_buf + 6, len / 2) != len / 2)
{
write_enn (own_buf);
free (mon);