Fix endless loop on srp app when listing users
authorDiego Santa Cruz <Diego.SantaCruz@spinetix.com>
Wed, 17 May 2017 08:17:59 +0000 (10:17 +0200)
committerAndy Polyakov <appro@openssl.org>
Fri, 19 May 2017 09:42:23 +0000 (11:42 +0200)
commit5ec3210fc106ecc6badb48db6cfb1493a7607763
treed21cb2723a5806298f5b61b8397d98e703f48b84
parent9bfeeef8ee2220339e601a028fa991c30d296ed4
Fix endless loop on srp app when listing users

With the -list option the srp app loops on the main while() endlessly,
whether users were given on the command line or not. The loop should
be stopped when in list mode and there are no more users.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3489)
apps/srp.c