Skip to content

Commit c40b1f4

Browse files
authored
Merge pull request #276 from fishgege/patch-3
bugfix for tmp_del_peer
2 parents 6b75f7a + eea79d0 commit c40b1f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ngx_http_upsync_module.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,10 @@ ngx_http_upsync_del_peers(ngx_cycle_t *cycle,
11531153
pre_peer = peer;
11541154
}
11551155
}
1156-
tmp_del_peer->next = NULL;
1156+
1157+
if (tmp_del_peer) {
1158+
tmp_del_peer->next = NULL;
1159+
}
11571160

11581161
peers->single = (n == 1);
11591162
peers->number = n;

0 commit comments

Comments
 (0)