Skip to content

Commit

Permalink
STM: Add missing unlock on error case in send.c
Browse files Browse the repository at this point in the history
Fixes zmap#677

Co-authored-by: ycaibb <ycaibb@gmail.com>
  • Loading branch information
dadrian and ycaibb committed Aug 29, 2021
1 parent 7a240a9 commit ce73aac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ int send_run(sock_t st, shard_t *s)

// OS specific per-thread init
if (send_run_init(st)) {
pthread_mutex_unlock(&send_mutex);
return -1;
}
// MAC address length in characters
Expand Down

0 comments on commit ce73aac

Please sign in to comment.