MINOR: ssl: store a ptr to crtlist in crtlist_entry
Store a pointer to crtlist in crtlist_entry so we can re-insert a
crtlist_entry in its crtlist ebpt after updating its key.
diff --git a/src/ssl_sock.c b/src/ssl_sock.c
index 39e6315..d6f8e67 100644
--- a/src/ssl_sock.c
+++ b/src/ssl_sock.c
@@ -4645,6 +4645,7 @@
goto end;
}
entry->node.key = ckchs;
+ entry->crtlist = dir;
LIST_ADDQ(&ckchs->crtlist_entry, &entry->by_ckch_store);
LIST_ADDQ(&dir->ord_entries, &entry->by_crtlist);
ebpt_insert(&dir->entries, &entry->node);
@@ -4665,6 +4666,7 @@
goto end;
}
entry->node.key = ckchs;
+ entry->crtlist = dir;
LIST_ADDQ(&ckchs->crtlist_entry, &entry->by_ckch_store);
LIST_ADDQ(&dir->ord_entries, &entry->by_crtlist);
ebpt_insert(&dir->entries, &entry->node);
@@ -4859,6 +4861,7 @@
}
entry->node.key = ckchs;
entry->ssl_conf = ssl_conf;
+ entry->crtlist = newlist;
/* filters */
entry->filters = crtlist_dup_filters(&args[cur_arg], arg - cur_arg - 1);
entry->fcount = arg - cur_arg - 1;