diff options
author | Matt Caswell <matt@openssl.org> | 2015-03-06 14:39:46 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-03-23 15:23:18 +0000 |
commit | ac59d70553723cd8c7c1558071a2e1672d80daef (patch) | |
tree | a35c6bddb4f86bcbcc1f4f6acfb38acd3b43a72c /apps/sess_id.c | |
parent | 69f682374868ba2b19a8aeada496bf03dbb037cf (diff) | |
download | openssl-ac59d70553723cd8c7c1558071a2e1672d80daef.tar.gz |
apps return value checks
Ensure that all libssl functions called from within the apps have their
return values checked where appropriate.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/sess_id.c')
-rw-r--r-- | apps/sess_id.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/sess_id.c b/apps/sess_id.c index fcb09118a6..9400af964e 100644 --- a/apps/sess_id.c +++ b/apps/sess_id.c @@ -166,7 +166,10 @@ int MAIN(int argc, char **argv) BIO_printf(bio_err, "Context too long\n"); goto end; } - SSL_SESSION_set1_id_context(x, (unsigned char *)context, ctx_len); + if(!SSL_SESSION_set1_id_context(x, (unsigned char *)context, ctx_len)) { + BIO_printf(bio_err, "Error setting id context\n"); + goto end; + } } if (!noout || text) { |