Remove an NULL ptr deref in an error path
authorMatt Caswell <matt@openssl.org>
Tue, 10 Nov 2015 23:12:36 +0000 (23:12 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 17 Nov 2015 11:17:37 +0000 (11:17 +0000)
commitd73ca3efa74bbb620a1e74deb5eec6f3d10203d5
tree7a102c1f0b8feb798077ba2c237ed355cd9b2123
parente4693b4e2a0c3f6241d4d3e61460c34c7e0013f6
Remove an NULL ptr deref in an error path

The |passwd| variable in the code can be NULL if it goes to the err label.
Therefore we cannot call strlen on it without first checking that it is non
NULL.

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
ssl/tls_srp.c