mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-03 23:38:39 +00:00
networkctl: fix strappend() error checking
Make sure to test the right variable for NULL.
This commit is contained in:
@@ -880,7 +880,7 @@ static char *lldp_system_caps(uint16_t cap) {
|
||||
}
|
||||
|
||||
t = strappend(s, "]");
|
||||
if (!s)
|
||||
if (!t)
|
||||
return NULL;
|
||||
|
||||
free(s);
|
||||
|
||||
Reference in New Issue
Block a user