Commit d3408d05 authored by Kamil Dudka's avatar Kamil Dudka
Browse files

nss: fix a crash within SSL_AuthCertificate()

The bug was introduced in 806dbb02 (a wrong value was passed in as the
first argument to the default callback in our wrapper).
parent 318c5c80
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -633,7 +633,7 @@ static SECStatus nss_auth_cert_hook(void *arg, PRFileDesc *fd, PRBool checksig,
    return SECSuccess;
  }

  return SSL_AuthCertificate(arg, fd, checksig, isServer);
  return SSL_AuthCertificate(CERT_GetDefaultCertDB(), fd, checksig, isServer);
}

static SECStatus BadCertHandler(void *arg, PRFileDesc *sock)