dhcp: fix infinite loop when escaping DUID
Oops; only enabled when debugging was turned on, but still sucks.
This commit is contained in:
@@ -380,7 +380,7 @@ escape_duid (const GByteArray *duid)
|
|||||||
while (i < duid->len) {
|
while (i < duid->len) {
|
||||||
if (s->len)
|
if (s->len)
|
||||||
g_string_append_c (s, ':');
|
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);
|
return g_string_free (s, FALSE);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user