diff options
author | Jorge Boncompte [DTI2] <jorge@dti2.net> | 2012-04-10 16:57:22 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2012-05-02 17:03:27 +0200 |
commit | 0c5ed3ed00f630ae95dc2dfd4b5a938683e2a99e (patch) | |
tree | 9e478062fed566ce245113a166a6c8d1eec9fbe2 /lib/sockunion.h | |
parent | bgpd: fix for route-maps with "match peer local" statements (diff) | |
download | frr-0c5ed3ed00f630ae95dc2dfd4b5a938683e2a99e.tar.xz frr-0c5ed3ed00f630ae95dc2dfd4b5a938683e2a99e.zip |
bgpd: Fix memory leak with 'set ip next-hop peer-address'
A route-map with the mentioned statement causes a memory leak for every
prefix that matches.
Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/sockunion.h')
-rw-r--r-- | lib/sockunion.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sockunion.h b/lib/sockunion.h index 4531f620a..15b97fc54 100644 --- a/lib/sockunion.h +++ b/lib/sockunion.h @@ -86,6 +86,8 @@ enum connect_result #define sockunion_family(X) (X)->sa.sa_family +#define sockunion2ip(X) (X)->sin.sin_addr.s_addr + /* Prototypes. */ extern int str2sockunion (const char *, union sockunion *); extern const char *sockunion2str (union sockunion *, char *, size_t); |