diff options
Diffstat (limited to 'src/proone-htbthost.c')
-rw-r--r-- | src/proone-htbthost.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/proone-htbthost.c b/src/proone-htbthost.c index 106d899..c4f543e 100644 --- a/src/proone-htbthost.c +++ b/src/proone-htbthost.c @@ -244,6 +244,8 @@ static bool parse_param (const char *arg) { prne_net_endpoint_t ep; size_t pos; + prne_memzero(&ep, sizeof(ep)); + pos = rm[1].rm_eo - rm[1].rm_so; memcpy(str, arg + rm[1].rm_so, pos); str[pos] = 0; @@ -271,6 +273,8 @@ static bool parse_param (const char *arg) { prne_net_endpoint_t ep; size_t pos; + prne_memzero(&ep, sizeof(ep)); + pos = rm[1].rm_eo - rm[1].rm_so; memcpy(str, arg + rm[1].rm_so, rm[1].rm_eo - rm[1].rm_so); str[pos] = 0; |