Skip to content

Commit

Permalink
fix uninitialized buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
csl04r committed Dec 3, 2018
1 parent 3e89cbd commit 3c17943
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions corkscrew.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ char *argv[];
if (len<=0)
break;
else {
memset(descr, 0, sizeof(descr));
sscanf(buffer,"%s%d%[^\n]",version,&code,descr);
if ((strncmp(version,"HTTP/",5) == 0) && (code >= 200) && (code < 300))
setup = 1;
Expand Down

0 comments on commit 3c17943

Please sign in to comment.