We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df35252 commit 6aab3e9Copy full SHA for 6aab3e9
src/bin/dhcp6/tests/fqdn_unittest.cc
@@ -521,7 +521,7 @@ class FqdnDhcpv6SrvTest : public Dhcpv6SrvTest {
521
OptionPtr srvid = srv_->getServerID();
522
// Set the appropriate FQDN type. It must be partial if hostname is
523
// empty or if it does not end with dot '.'.
524
- Option6ClientFqdn::DomainNameType fqdn_type = (hostname.back() != '.' ?
+ Option6ClientFqdn::DomainNameType fqdn_type = ((hostname.empty() || hostname.back() != '.') ?
525
Option6ClientFqdn::PARTIAL : Option6ClientFqdn::FULL);
526
527
Pkt6Ptr req = generateMessage(msg_type, client_flags,
0 commit comments