Don't "goto err" in client_master_key because no such label exists;
authorBodo Möller <bodo@openssl.org>
Fri, 21 Jan 2000 11:20:22 +0000 (11:20 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 21 Jan 2000 11:20:22 +0000 (11:20 +0000)
just return -1 as in other error cases.

ssl/s2_clnt.c

index f813c504fed215947174a0094781f8747fdc6e77..c7ec4c07d176fc1c1f3afbfa919a397cd02b171c 100644 (file)
@@ -567,7 +567,7 @@ static int client_master_key(SSL *s)
                        if (RAND_bytes(sess->master_key,i) <= 0)
                                {
                                ssl2_return_error(s,SSL2_PE_UNDEFINED_ERROR);
-                               goto err;
+                               return(-1);
                                }
                        }