Changeset 420ddc00


Ignore:
Timestamp:
2013-05-25T12:39:42Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
f2d8aa2
Parents:
c153808
Message:

Fix double free() in ssl_nss.c. #1038

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ssl_nss.c

    rc153808 r420ddc00  
    152152        conn->func = func;
    153153        conn->data = data;
    154         conn->hostname = hostname;
     154        conn->hostname = g_strdup(hostname);
    155155
    156156        /* For now, SSL verification is globally enabled by setting the cafile
     
    296296                PR_Close(conn->prfd);
    297297
    298         g_free(conn->hostname);
     298        g_free(conn->hostname);
    299299        g_free(conn);
    300300}
Note: See TracChangeset for help on using the changeset viewer.