diff options
author | Tim Hudson <tjh@cryptsoft.com> | 2014-05-05 06:41:22 +1000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2014-05-06 00:02:31 +0100 |
commit | 8bbfd94e36559ceb7187d4d8a63e950713b93e0d (patch) | |
tree | f0832f19a922dfe08052702883a3b7d79493c2bb /crypto/srp | |
parent | e1ce131d4dd072c415bdd3864a6419478277a141 (diff) |
- fix coverity issues 966593-966596
Diffstat (limited to 'crypto/srp')
-rw-r--r-- | crypto/srp/srp_vfy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/srp/srp_vfy.c b/crypto/srp/srp_vfy.c index 6889a6bded..179f9a1a2c 100644 --- a/crypto/srp/srp_vfy.c +++ b/crypto/srp/srp_vfy.c @@ -93,6 +93,9 @@ static int t_fromb64(unsigned char *a, const char *src) else a[i] = loc - b64table; ++i; } + /* if nothing valid to process we have a zero length response */ + if (i == 0) + return 0; size = i; i = size - 1; j = size; |