aboutsummaryrefslogtreecommitdiff
path: root/sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'sip.c')
-rw-r--r--sip.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sip.c b/sip.c
index 2c25da8..d237dd8 100644
--- a/sip.c
+++ b/sip.c
@@ -318,19 +318,19 @@ getheader(Hdrtab *ht, char *name)
void
delheader(Hdrtab *ht, char *name)
{
- Hdr **h, *nh;
+ Hdr *h, *nh;
uint key;
key = hash(name);
- h = &ht->headers[key];
- while(*h != nil){
- nh = (*h)->next;
- if(cistrcmp((*h)->name, name) == 0){
- free((*h)->name);
- free((*h)->value);
- free(*h);
+ h = ht->headers[key];
+ while(h != nil){
+ nh = h->next;
+ if(cistrcmp(h->name, name) == 0){
+ free(h->name);
+ free(h->value);
+ free(h);
}
- *h = nh;
+ h = nh;
}
}