diff options
Diffstat (limited to 'ripd/ripd.c')
-rw-r--r-- | ripd/ripd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c index fd1f2da6..3267e157 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -1358,6 +1358,8 @@ rip_create_socket (struct sockaddr_in *from) #ifdef HAVE_SINLEN addr.sin_len = sizeof (struct sockaddr_in); #endif /* HAVE_SINLEN */ + } else { + memcpy(&addr, from, sizeof(addr)); } /* sending port must always be the RIP port */ |