]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fixed typo
authorAlan T. DeKok <aland@freeradius.org>
Tue, 18 Aug 2009 10:07:40 +0000 (12:07 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 18 Aug 2009 10:07:40 +0000 (12:07 +0200)
src/lib/packet.c

index 952a85b42201fc9d072e0dbbf0c38d935fccbe60..6956910662fff237d0ef11a3d8c98bcb49b7a4a5 100644 (file)
@@ -235,7 +235,7 @@ int fr_socket(fr_ipaddr_t *ipaddr, int port)
                 *      flag is zero.
                 */
                flag = IP_PMTUDISC_DONT;
-               setsockopt(sock->fd, IPPROTO_IP, IP_MTU_DISCOVER,
+               setsockopt(sockfd, IPPROTO_IP, IP_MTU_DISCOVER,
                           &action, sizeof(action));
 #endif
 
@@ -244,7 +244,7 @@ int fr_socket(fr_ipaddr_t *ipaddr, int port)
                 *      Ensure that the "don't fragment" flag is zero.
                 */
                flag = 0;
-               setsockopt(sock->fd, IPPROTO_IP, IP_DONTFRAG,
+               setsockopt(sockfd, IPPROTO_IP, IP_DONTFRAG,
                           &off, sizeof(off));
 #endif
        }