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

index e2d570f..55ede24 100644 (file)
@@ -1560,6 +1560,7 @@ int ssl3_send_server_key_exchange(SSL *s)
                            (unsigned char *)encodedPoint, 
                            encodedlen);
                        OPENSSL_free(encodedPoint);
+                       encodedPoint = NULL;
                        p += encodedlen;
                        }
 #endif