diff options
author | rodri <rgl@antares-labs.eu> | 2023-08-02 11:52:57 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-08-02 11:52:57 +0000 |
commit | d63fbe6cd5e055b40ae8e4aa209b9aef07074f8b (patch) | |
tree | 8f95cd27805f675d7410b6c7026b60e8e2502b2c /sip.c | |
parent | 489c503c2594f88d29d50b788915cf1ba74f66ac (diff) | |
download | catphone-d63fbe6cd5e055b40ae8e4aa209b9aef07074f8b.tar.gz catphone-d63fbe6cd5e055b40ae8e4aa209b9aef07074f8b.tar.bz2 catphone-d63fbe6cd5e055b40ae8e4aa209b9aef07074f8b.zip |
Diffstat (limited to 'sip.c')
-rw-r--r-- | sip.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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; } } |