diff options
author | Christian Pointner <equinox@anytun.org> | 2008-02-24 19:10:34 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-02-24 19:10:34 +0000 |
commit | c597afc9f59af4d4596068d042f467127311bfed (patch) | |
tree | c08334c099c0608c2368c1978f1c9150abfc094d /plainPacket.cpp | |
parent | changed cipher option default value to aes-ctr (diff) |
added NullKeyDerivation
added KeyDerivationFactory
Diffstat (limited to 'plainPacket.cpp')
-rw-r--r-- | plainPacket.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plainPacket.cpp b/plainPacket.cpp index 0906fa2..d6f2e5f 100644 --- a/plainPacket.cpp +++ b/plainPacket.cpp @@ -45,7 +45,10 @@ PlainPacket::PlainPacket(u_int32_t payload_length, bool allow_realloc) : Buffer( payload_type_t PlainPacket::getPayloadType() const { - return PAYLOAD_TYPE_T_NTOH(*payload_type_); + if(payload_type_) + return PAYLOAD_TYPE_T_NTOH(*payload_type_); + + return 0; } void PlainPacket::setPayloadType(payload_type_t payload_type) |