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

index 0f203ec6b16ccbcf189cecbca90dcb5192a66fca..286af3a4db49edff132aa4ae51679da9150cbddd 100644 (file)
@@ -1869,6 +1869,7 @@ int ssl3_send_server_key_exchange(SSL *s)
                            (unsigned char *)encodedPoint, 
                            encodedlen);
                        OPENSSL_free(encodedPoint);
+                       encodedPoint = NULL;
                        p += encodedlen;
                        }
 #endif