Skip to contentSkip to conversation

iproute2 : ipt - free local opts

PATCH New jamal 1 participant 1 message Feb 7, 2009

Subsystems (2)
lore
Share & tools
lore

jamal

author
#0 lore raw

PATCH 1/1 iproute2 : ipt - free local opts

Quoted 2 lines

From Denys Fedoryschenko <[email protected]>

This was left out in the last release. It is a bug fix for when batch files are used.

cheers,
jamal

commit eb3c0ea70d7fd47c8a132f2e7a7dfce734c2394b

Author: Denys Fedoryschenko <[email protected]>
Date:   Sat Feb 7 08:49:32 2009 -0500

This change was forgotten by Stephen in the last release

tc/m_ipt.c +3 -3
index f5b7b3c..5b98428 100644
@@ -162,10 +162,10 @@ int string_to_number(const char *s, unsigned int min, unsigned int max,
 	return result;
 }
 
-static void free_opts(struct option *opts)
+static void free_opts(struct option *local_opts)
 {
-	if (opts != original_opts) {
-		free(opts);
+	if (local_opts != original_opts) {
+		free(local_opts);
 		opts = original_opts;
 		global_option_offset = 0;
 	}