Skip to content

Commit

Permalink
Merge pull request #276 from fishgege/patch-3
Browse files Browse the repository at this point in the history
bugfix for tmp_del_peer
  • Loading branch information
gfrankliu authored Dec 18, 2019
2 parents 6b75f7a + eea79d0 commit c40b1f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ngx_http_upsync_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,10 @@ ngx_http_upsync_del_peers(ngx_cycle_t *cycle,
pre_peer = peer;
}
}
tmp_del_peer->next = NULL;

if (tmp_del_peer) {
tmp_del_peer->next = NULL;
}

peers->single = (n == 1);
peers->number = n;
Expand Down

0 comments on commit c40b1f4

Please sign in to comment.