mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 05:58:01 +02:00
dhcp: fix infinite loop when escaping DUID
Oops; only enabled when debugging was turned on, but still sucks.
This commit is contained in:
parent
b3edc86e78
commit
9ee46b45f1
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue