Fix NullPointerException that would occur when getting a non-dnssec referral from the server.

This commit is contained in:
David Blacka
2015-04-24 21:24:29 -04:00
parent c95cd7e0e9
commit 37e9932d6e
3 changed files with 18 additions and 13 deletions

View File

@@ -579,7 +579,7 @@ public class CaptiveValidator {
return;
}
if (nsec3s.size() > 0) {
if (nsec3s != null && nsec3s.size() > 0) {
byte status = NSEC3ValUtils.proveNoDS(nsec3s, delegation, nsec3zone, mErrorList);
if (status != SecurityStatus.SECURE) {