Don't use an uninitialised variable in srp application
authorMatt Caswell <matt@openssl.org>
Fri, 29 Apr 2016 11:17:15 +0000 (12:17 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 29 Apr 2016 15:47:41 +0000 (16:47 +0100)
commit9d7ec8090ec1f131825c1bd087969c2e88750385
tree5745078dccab8a7fb6116bc96b8418b1c7edabcd
parent40a8643a37ea50781872acd740020ac5b6c8f699
Don't use an uninitialised variable in srp application

The srp application created an uninitialised DB_ATTR object and then
passed it to the load_index function which attempted to read it. A
DB_ATTR object only contains a single field called "unique_subject".
AFAICT this attribute is unused in the SRP case, and therefore it would be
better to pass a NULL DB_ATTR to load_index (which handles that case
gracefully).

Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/srp.c