Changeset 1493c4b


Ignore:
Timestamp:
2015-04-24T20:52:55Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
40cfbc5
Parents:
71074ac
Message:

oauth: fix use-after-free of the ->next of the list

Third time's the charm.

Previous attempt fixed something and broke something else. Whatever.
Definitely valgrind clean this time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/oauth.c

    r71074ac r1493c4b  
    9696{
    9797        int key_len = strlen(key);
    98         GSList *l;
     98        GSList *l, *n;
    9999
    100100        if (!params) {
     
    102102        }
    103103
    104         for (l = *params; l; l = l->next) {
     104        for (l = *params; l; l = n) {
     105                n = l->next;
    105106                char *data = l->data;
    106107
Note: See TracChangeset for help on using the changeset viewer.