diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_client.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index 393b311904..56209ac0f6 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -2406,10 +2406,9 @@ int s_client_main(int argc, char **argv) } else if (packet[pos++] == '\0') { break; } - pos++; } - /* make sure we have more 15 bytes left in the packet */ + /* make sure we have at least 15 bytes left in the packet */ if (pos + 15 > bytes) { BIO_printf(bio_err, "MySQL server handshake packet is broken.\n"); |