diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2022-06-16 11:06:03 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-17 18:43:34 +0000 |
commit | ad83c9f408ab37cd1bdd773a5879050172d005b7 (patch) | |
tree | 2a5539038db2c35a6e89bfa2829fc621481bc0c2 | |
parent | a831109e067b69525ee57010b30d9f56f384b263 (diff) | |
download | mongo-ad83c9f408ab37cd1bdd773a5879050172d005b7.tar.gz |
SERVER-67316 LDAP CNAME resolution truncates CNAME incorrectly
(cherry picked from commit c82753a67670b3cc43787925c1de265806c5e5be)
-rw-r--r-- | src/mongo/util/dns_query_posix-impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/dns_query_posix-impl.h b/src/mongo/util/dns_query_posix-impl.h index 8c39084deaf..93431114f7f 100644 --- a/src/mongo/util/dns_query_posix-impl.h +++ b/src/mongo/util/dns_query_posix-impl.h @@ -188,7 +188,7 @@ public: uasserted(ErrorCodes::DNSProtocolError, "DNS CNAME record could not be decompressed"); } - return std::string(&buf[0], length); + return std::string(&buf[0]); } DNSQueryType getType() const { |