diff options
-rw-r--r-- | bpkg/auth.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bpkg/auth.cxx b/bpkg/auth.cxx index da5b293..bafc321 100644 --- a/bpkg/auth.cxx +++ b/bpkg/auth.cxx @@ -292,7 +292,7 @@ namespace bpkg }; string s; - if (!get (s) || s != "subject= ") + if (!get (s) || s.compare (0, 8, "subject=") != 0) bad_cert ("no subject"); // Parse RDN (relative distinguished name). |