File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -480,9 +480,9 @@ map_sort_fn(const void *p1, const void *p2)
480480 ipfix2 = ipfix2 -> next ;
481481 }
482482
483- if (ipfix1 -> next ) {
483+ if (ipfix1 && ipfix1 -> next ) {
484484 return -1 ;
485- } else if (ipfix2 -> next ) {
485+ } else if (ipfix2 && ipfix2 -> next ) {
486486 return 1 ;
487487 }
488488
@@ -585,7 +585,7 @@ map_load(map_t *map, const char *file)
585585
586586 // Collision detected!
587587 snprintf (map -> err_buffer , ERR_SIZE , "The IPFIX IE '%s' (PEN %" PRIu32 ", ID %" PRIu16 ") "
588- "is mapped to multiple different UniRec fields ('%s' and '%s')" ,
588+ "is mapped to multiple UniRec fields ('%s' and '%s')" ,
589589 rec_now -> ipfix .def -> name , rec_now -> ipfix .en , rec_now -> ipfix .id ,
590590 rec_now -> unirec .name , rec_prev -> unirec .name );
591591 map_clear (map );
You can’t perform that action at this time.
0 commit comments