Skip to content

Commit

Permalink
main UPDATE zero the whole np2srv struct
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Jul 1, 2024
1 parent 2a7478b commit d1a99ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,9 @@ server_destroy(void)

/* free dynamic members */
free(np2srv.url_protocols);
np2srv.url_protocols = NULL;

/* zero */
memset(&np2srv, sizeof np2srv, 0);
}

/**
Expand Down

0 comments on commit d1a99ae

Please sign in to comment.