git://git.onelab.eu
/
distributedratelimiting.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added an option to manually specify which address to bind to.
[distributedratelimiting.git]
/
drl
/
util.c
diff --git
a/drl/util.c
b/drl/util.c
index
c03eced
..
bf4862a
100644
(file)
--- a/
drl/util.c
+++ b/
drl/util.c
@@
-301,8
+301,8
@@
char* get_local_ip(){
} else {
if (localip == NULL) {
localip = malloc(STRINGSIZE);
+ strncpy(localip, ip, STRINGSIZE);
}
- strncpy(localip, ip, STRINGSIZE);
}
}
freeifaddrs(ifp);