Fix warning (hope this doesn't break other platforms, there's a twisty
authorBen Laurie <ben@openssl.org>
Thu, 4 Oct 2012 15:03:08 +0000 (15:03 +0000)
committerBen Laurie <ben@openssl.org>
Thu, 4 Oct 2012 15:03:08 +0000 (15:03 +0000)
little maze of #ifs, all different).

crypto/bio/bss_dgram.c

index bb64e88a4c983a0f4c77ef68db7bbbacb252ee07..a223b8367cb565b509cf3d4f10f587c81227d184 100644 (file)
@@ -381,8 +381,8 @@ static long dgram_ctrl(BIO *b, int cmd, long num, void *ptr)
        int *ip;
        struct sockaddr *to = NULL;
        bio_dgram_data *data = NULL;
-       int sockopt_val = 0;
 #if defined(OPENSSL_SYS_LINUX) && (defined(IP_MTU_DISCOVER) || defined(IP_MTU))
+       int sockopt_val = 0;
        socklen_t sockopt_len;  /* assume that system supporting IP_MTU is
                                 * modern enough to define socklen_t */
        socklen_t addr_len;