components/quagga/patches/50-bgpd-nosub.patch
changeset 641 719d637aca9f
parent 640 4afec94b6313
child 642 817474c3c772
--- a/components/quagga/patches/50-bgpd-nosub.patch	Tue Jan 03 09:16:46 2012 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-commit 6d134fb4defecb16591adbf4acb020acd165a75a
-Author: Paul Jakma <[email protected]>
-Date:   Thu Aug 23 23:22:02 2007 +0000
-
-    [bgpd] Pass NOSUB to regexec
-    
-    2007-08-23 Paul Jakma <[email protected]>
-    
-    	* bgp_regex.c: (bgp_regcomp) Pass NOSUB flag to regcomp to
-    	  prevent parsing of substitutions, which can have profound
-    	  performance effects on bgpd and are of no use to the CLI
-    	  anyway. How much it helps depends on the regex
-    	  implementation.
-
-diff --git a/bgpd/bgp_regex.c b/bgpd/bgp_regex.c
-index be84d40..9b65f7c 100644
---- bgpd/bgp_regex.c
-+++ bgpd/bgp_regex.c
-@@ -66,7 +66,7 @@ bgp_regcomp (const char *regstr)
- 
-   regex = XMALLOC (MTYPE_BGP_REGEXP, sizeof (regex_t));
- 
--  ret = regcomp (regex, magic_str, REG_EXTENDED);
-+  ret = regcomp (regex, magic_str, REG_EXTENDED|REG_NOSUB);
- 
-   XFREE (MTYPE_TMP, magic_str);
-