Permalink
Browse files

nfx file patch added

  • Loading branch information...
tpoder1 committed Feb 21, 2016
1 parent 98d8f58 commit 7c3c552d1404fb63051f95baef3d038204fdbabf
Showing with 28 additions and 0 deletions.
  1. +28 −0 nfdump-thread-nfx.patch
View
@@ -0,0 +1,28 @@
--- nfdump-1.6.14-b2/bin/nfx.c 2015-11-21 12:42:58.000000000 +0100
+++ nfdump/bin/nfx.c 2016-01-11 17:02:40.000000000 +0100
@@ -137,7 +137,7 @@
{ 0, 0, 0, 0, NULL }
};
-uint32_t Max_num_extensions;
+uint32_t Max_num_extensions = 0;
void FixExtensionMap(extension_map_t *map);
@@ -154,10 +154,12 @@
list->last_map = &list->map_list;
}
- Max_num_extensions = 0;
- i = 1;
- while ( extension_descriptor[i++].id ) {
- Max_num_extensions++;
+// Max_num_extensions = 0;
+ if (Max_num_extensions == 0) {
+ i = 1;
+ while ( extension_descriptor[i++].id ) {
+ Max_num_extensions++;
+ }
}
#ifdef DEVEL
i = 1;

0 comments on commit 7c3c552

Please sign in to comment.