set encodedPoint to NULL after freeing it
authorDr. Stephen Henson <steve@openssl.org>
Thu, 19 May 2011 16:18:11 +0000 (16:18 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 19 May 2011 16:18:11 +0000 (16:18 +0000)
ssl/s3_srvr.c

index 3107df9d6e3c673944075bf572bf51c11c9aff76..6300d5027ac5fe34f61649d4fdd39095fce61ea3 100644 (file)
@@ -1825,6 +1825,7 @@ int ssl3_send_server_key_exchange(SSL *s)
                            (unsigned char *)encodedPoint, 
                            encodedlen);
                        OPENSSL_free(encodedPoint);
+                       encodedPoint = NULL;
                        p += encodedlen;
                        }
 #endif