]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/libsystemd-network/network-internal.c
Merge pull request #11382 from keszybz/udev-predictable-macs
[thirdparty/systemd.git] / src / libsystemd-network / network-internal.c
index 9e7838527c59fcb85ca0622e2fb06ac6121648f0..a0209caf3a8163417e3eb2f04bf930a77cd09863 100644 (file)
@@ -59,7 +59,7 @@ int net_get_unique_predictable_data(sd_device *device, uint64_t *result) {
         log_device_debug(device, "Using \"%s\" as stable identifying information", name);
         l = strlen(name);
         sz = sizeof(sd_id128_t) + l;
-        v = alloca(sz);
+        v = newa(uint8_t, sz);
 
         /* Fetch some persistent data unique to this machine */
         r = sd_id128_get_machine((sd_id128_t*) v);