Hello, everyone! I found a very strange thing in the ngx_rbtree_delete function. It seems that there is redundant assignment under the following if statement:
if (subst->parent == node) { temp->parent = subst; Could someone please explain to me why this assignment is needed if temp was taken as subst->right before? Because it was a child of subst, it means temp had subst as its parent.
_______________________________________________ nginx-devel mailing list nginx-devel@nginx.org https://mailman.nginx.org/mailman/listinfo/nginx-devel