Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Fix incorrect comparison with assignment #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sambapatch.diff
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ index 0000000..55a5f1e
+}
+
+static void set_addr(struct ifaddrs_container *ifa, int family, const void *data, size_t byteCount) {
+ if (ifa->ifa.ifa_addr = NULL) {
+ if (ifa->ifa.ifa_addr == NULL) {
+ // Assume this is IFA_LOCAL, if not set_local_addr will fix it.
+ ifa->ifa.ifa_addr = copy_addr(family, data, byteCount, &ifa->addr, ifa->idx);
+ } else {
Expand Down