]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix leak and report correct invalid encoding option for sip servers.
authorRoy Marples <roy@marples.name>
Thu, 19 Jul 2007 15:46:02 +0000 (15:46 +0000)
committerRoy Marples <roy@marples.name>
Thu, 19 Jul 2007 15:46:02 +0000 (15:46 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index bbdc1c8dda819a27666506a86e7292d1b0b6b00d..02db748b1a033418dd9b31f889dcd08838f5a0fd 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -425,6 +425,7 @@ void free_dhcp (dhcp_t *dhcp)
        free (dhcp->nisdomain);
        free_address (dhcp->nisservers);
        free (dhcp->rootpath);
+       free (dhcp->sipservers);
        if (dhcp->fqdn) {
                free (dhcp->fqdn->name);
                free (dhcp->fqdn);
@@ -493,7 +494,7 @@ static char *decode_sipservers (const unsigned char *data, int length)
                        break;
 
                default:
-                       logger (LOG_ERR, "unknown sip encoding %d", *data);
+                       logger (LOG_ERR, "unknown sip encoding %d", encoding);
                        break;
        }