summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common.c b/common.c
index 6f99509..ac83776 100644
--- a/common.c
+++ b/common.c
@@ -329,7 +329,7 @@ struct socks_connector
SOCKS_DATA_CB (socks_4a_finish)
{
- uint8_t null, status;
+ uint8_t null = 0, status = 0;
hard_assert (msg_unpacker_u8 (unpacker, &null));
hard_assert (msg_unpacker_u8 (unpacker, &status));
@@ -432,7 +432,7 @@ SOCKS_DATA_CB (socks_5_request_domain)
SOCKS_DATA_CB (socks_5_request_finish)
{
- uint8_t version, status, reserved, type;
+ uint8_t version = 0, status = 0, reserved = 0, type = 0;
hard_assert (msg_unpacker_u8 (unpacker, &version));
hard_assert (msg_unpacker_u8 (unpacker, &status));
hard_assert (msg_unpacker_u8 (unpacker, &reserved));
@@ -509,7 +509,7 @@ socks_5_request_start (struct socks_connector *self)
SOCKS_DATA_CB (socks_5_userpass_finish)
{
- uint8_t version, status;
+ uint8_t version = 0, status = 0;
hard_assert (msg_unpacker_u8 (unpacker, &version));
hard_assert (msg_unpacker_u8 (unpacker, &status));
@@ -544,7 +544,7 @@ socks_5_userpass_start (struct socks_connector *self)
SOCKS_DATA_CB (socks_5_auth_finish)
{
- uint8_t version, method;
+ uint8_t version = 0, method = 0;
hard_assert (msg_unpacker_u8 (unpacker, &version));
hard_assert (msg_unpacker_u8 (unpacker, &method));