summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plainPacket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plainPacket.cpp b/plainPacket.cpp
index a592d38..7baef0b 100644
--- a/plainPacket.cpp
+++ b/plainPacket.cpp
@@ -73,7 +73,7 @@ payload_type_t PlainPacket::getPayloadType() const
void PlainPacket::setPayloadType(payload_type_t payload_type)
{
- payload_type_ = PAYLOAD_TYPE_T_HTON(payload_type);
+ *payload_type_ = PAYLOAD_TYPE_T_HTON(payload_type);
}
void PlainPacket::setLength(u_int32_t length)