1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Update MLVPN

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-05-14 21:13:40 +02:00
parent 2fb1dc5f77
commit 3bfa7c30c1
2 changed files with 7 additions and 21 deletions

View file

@ -1,11 +0,0 @@
--- a/src/mlvpn.c 2018-08-25 07:39:53.625002006 +0200
+++ b/src/mlvpn.c 2018-08-25 07:40:35.696481066 +0200
@@ -1019,7 +1019,7 @@
#endif
if (*t->binddev) {
memset(&ifr, 0, sizeof(ifr));
- snprintf(ifr.ifr_name, sizeof(ifr.ifr_name) - 1, t->binddev);
+ snprintf(ifr.ifr_name, sizeof(ifr.ifr_name) - 1, "%s", t->binddev);
if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, (void *)&ifr, sizeof(ifr)) < 0) {
log_warn(NULL, "failed to bind on interface %s", t->binddev);
}