Fix data type checking in dlep TLV transmission
authorHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Wed, 18 Oct 2017 06:11:17 +0000 (08:11 +0200)
committerHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Wed, 18 Oct 2017 06:11:17 +0000 (08:11 +0200)
src-plugins/generic/dlep/dlep_writer.c

index 12998ed..7ca6cba 100644 (file)
@@ -392,7 +392,7 @@ dlep_writer_map_identity(struct dlep_writer *writer,
   uint8_t tmp8;
   void *value;
 
-  if (meta->type != OONF_LAYER2_INTEGER_DATA) {
+  if (meta->type != oonf_layer2_data_get_type(data)) {
     /* bad data type */
     return -1;
   }