summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.c b/util.c
index 02614eb..9a54b57 100644
--- a/util.c
+++ b/util.c
@@ -127,6 +127,7 @@ struct sockaddr *addr_copy(struct sockaddr *in) {
}
break;
}
+ out->sa_family = in->sa_family;
return out;
}