Skip to content

Commit

Permalink
wifi: do wipe ctx in main()
Browse files Browse the repository at this point in the history
  • Loading branch information
arsv committed Feb 8, 2018
1 parent bc89d90 commit 4312982
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/net2/wifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ int main(int argc, char** argv)
struct top context, *ctx = &context;
char* cmd;

memzero(ctx, sizeof(ctx));

init_args(ctx, argc, argv);
init_heap_bufs(ctx);

Expand Down

0 comments on commit 4312982

Please sign in to comment.