]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
socket: Set bound = true if we have a scope id
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 30 Sep 2020 20:55:16 +0000 (15:55 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 30 Sep 2020 20:55:16 +0000 (15:55 -0500)
src/lib/util/socket.c

index 8c83e935253483e58dd78a787c62b896f6c3234e..579f66547e49caba61b31fef3e080aeea6b6fe37 100644 (file)
@@ -940,6 +940,8 @@ int fr_socket_bind(int sockfd, fr_ipaddr_t const *src_ipaddr, uint16_t *src_port
                         */
                        my_ipaddr.scope_id = scope_id;
                        bound = true;
+               } else {
+                       bound = true;
                }
 #else
                struct ifaddrs *list = NULL;