Fixes Coverity
1633353,
1633356,
1633357
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/26522)
*secretlen = 0; /* replace with real shared secret length */
if (out == NULL) {
- debug_print("encaps outlens set to %d and %d\n", *outlen, *secretlen);
+ if (outlen != NULL && secretlen != NULL)
+ debug_print("encaps outlens set to %d and %d\n", *outlen, *secretlen);
return 1;
}
*outlen = 0; /* replace with shared secret length */
if (out == NULL) {
- debug_print("decaps outlen set to %d \n", *outlen);
+ if (outlen != NULL)
+ debug_print("decaps outlen set to %d \n", *outlen);
return 1;
}