fdo-client/gcc.patch

38 lines
959 B
Diff
Raw Permalink Normal View History

--- org/network/network_if_linux.c 2022-12-09 09:44:34.000000000 +0100
+++ patch/network/network_if_linux.c 2023-03-02 16:05:07.625074915 +0100
@@ -246,7 +246,7 @@
goto err;
}
- if (ip_addr->addr) {
+ if (ip_addr->length > 0) {
ip_ascii = fdo_alloc(IP_TAG_LEN);
if (!ip_ascii) {
goto err;
@@ -331,7 +331,7 @@
}
}
- if (ip_addr->addr) {
+ if (ip_addr->length > 0) {
ip_ascii = fdo_alloc(IP_TAG_LEN);
if (!ip_ascii) {
goto err;
--- org/lib/credentials_from_file.c 2022-12-09 09:44:34.000000000 +0100
+++ patch/lib/credentials_from_file.c 2023-03-02 16:34:46.597314561 +0100
@@ -231,7 +231,6 @@
return true;
}
- LOG(LOG_DEBUG, "Reading DeviceCredential blob of length %"PRIu64"\n", dev_cred_len);
fdor = fdo_alloc(sizeof(fdor_t));
if (!fdor || !fdor_init(fdor) || !fdo_block_alloc_with_size(&fdor->b, dev_cred_len)) {
@@ -531,4 +530,4 @@
return true;
}
return false;
-}
\ Kein Zeilenumbruch am Dateiende.
+}