krb5: Check return value of RAND_bytes()
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:

committed by
Nico Williams

parent
62e63b2da6
commit
e53d594d05
@@ -448,7 +448,9 @@ build_auth_pack(krb5_context context,
|
||||
krb5_clear_error_message(context);
|
||||
return ret;
|
||||
}
|
||||
RAND_bytes(a->clientDHNonce->data, a->clientDHNonce->length);
|
||||
ret = RAND_bytes(a->clientDHNonce->data, a->clientDHNonce->length);
|
||||
if (ret != 1)
|
||||
return KRB5_CRYPTO_INTERNAL;
|
||||
ret = krb5_copy_data(context, a->clientDHNonce,
|
||||
&ctx->clientDHNonce);
|
||||
if (ret)
|
||||
|
Reference in New Issue
Block a user