dhcp: fix infinite loop when escaping DUID

Oops; only enabled when debugging was turned on, but still sucks.
This commit is contained in:
Dan Williams
2013-02-04 16:52:34 -06:00
parent b3edc86e78
commit 9ee46b45f1

View File

@@ -380,7 +380,7 @@ escape_duid (const GByteArray *duid)
while (i < duid->len) {
if (s->len)
g_string_append_c (s, ':');
g_string_append_printf (s, "%02x", duid->data[i]);
g_string_append_printf (s, "%02x", duid->data[i++]);
}
return g_string_free (s, FALSE);
}