X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=apps%2Fs_client.c;h=ef41cec1aa19d2e4e57bf449213698e865a2419f;hp=758fb2563e665d7e7294891464e6edbd6585bf0c;hb=9f114219508d64a5b9522006eab1ed2db918dd25;hpb=51527f1e3564f210e984fe5b654c45d34e4f03d7 diff --git a/apps/s_client.c b/apps/s_client.c index 758fb2563e..ef41cec1aa 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -547,6 +547,11 @@ static char *MS_CALLBACK ssl_give_srp_client_pwd_cb(SSL *s, void *arg) PW_CB_DATA cb_tmp; int l; + if(!pass) { + BIO_printf(bio_err, "Malloc failure\n"); + return NULL; + } + cb_tmp.password = (char *)srp_arg->srppassin; cb_tmp.prompt_info = "SRP user"; if ((l = password_callback(pass, PWD_STRLEN, 0, &cb_tmp)) < 0) {