]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Restored missing lock in packet_queue_ring.h
authorThomas Markwalder <tmark@isc.org>
Wed, 12 Dec 2018 16:34:48 +0000 (11:34 -0500)
committerThomas Markwalder <tmark@isc.org>
Wed, 12 Dec 2018 16:34:48 +0000 (11:34 -0500)
    modified:   src/lib/dhcp/packet_queue_ring.h

src/lib/dhcp/packet_queue_ring.h

index 3477fff5c00be41c082e66f6d3dd7885a29e0a2b..315e2a0375721466b9f95d9b81ea040fb28161fb 100644 (file)
@@ -105,6 +105,7 @@ public:
     /// @param to specifies the end of the queue to which the packet
     /// should be added.
     virtual void pushPacket(PacketTypePtr& packet, const QueueEnd& to=QueueEnd::BACK) {
+        isc::util::thread::Mutex::Locker lock(mutex_);
         if (to == QueueEnd::BACK) {
             queue_.push_back(packet);
         } else {