]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3712] Addressed review comments
authorThomas Markwalder <tmark@isc.org>
Tue, 18 Feb 2025 15:03:12 +0000 (15:03 +0000)
committerThomas Markwalder <tmark@isc.org>
Tue, 18 Feb 2025 15:04:04 +0000 (15:04 +0000)
Couple of typos fixed.

src/lib/dhcp/pkt_filter_lpf.cc

index b0c8f108d3ebb2d49f2daa65819124931612d9dc..3642915cc1b0e13558534d5dad87f2ee33d486e2 100644 (file)
@@ -320,7 +320,7 @@ PktFilterLPF::receive(Iface& iface, const SocketInfo& socket_info) {
 
     auto v4_len = buf.getLength() - buf.getPosition();
     if (v4_len <= 0) {
-        isc_throw(SocketReadError, "Pkt4FilterLpf:: packet has no DHCPv4 data");
+        isc_throw(SocketReadError, "Pkt4FilterLpf packet has no DHCPv4 data");
     }
 
     // Read the DHCP data.
@@ -349,7 +349,8 @@ PktFilterLPF::receive(Iface& iface, const SocketInfo& socket_info) {
 
             struct timeval cmsg_time;
             memcpy(&cmsg_time, CMSG_DATA(cmsg), sizeof(cmsg_time));
-            pkt->addPktEvent(PktEvent::SOCKET_RECEIVED, cmsg_time); break;
+            pkt->addPktEvent(PktEvent::SOCKET_RECEIVED, cmsg_time);
+            break;
         }
 
         cmsg = CMSG_NXTHDR(&m, cmsg);