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:44:32 +0000 (11:44 +0200)
commit5a02eefaad7c8e53d6c7b9f57d947a9cfe6a167f
tree543693d7c519f6ffe38575275cd33e31f26cacc3
parentc231202e10a078fc52cd51301553a1a09a957f8f
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)

(cherry picked from commit 5ec3210fc106ecc6badb48db6cfb1493a7607763)
apps/srp.c