diff options
author | Denis Ovsienko <linux@pilot.org.ua> | 2007-09-12 17:24:27 +0200 |
---|---|---|
committer | Denis Ovsienko <linux@pilot.org.ua> | 2007-09-12 17:24:27 +0200 |
commit | bd6c86d3a30d27ed4960863a653376c54e5e5e34 (patch) | |
tree | 29c6ad4e9539282028c9452870416c61d731ab7b /zebra/rt_socket.c | |
parent | [release] bump to 0.99.9 (diff) | |
download | frr-bd6c86d3a30d27ed4960863a653376c54e5e5e34.tar.xz frr-bd6c86d3a30d27ed4960863a653376c54e5e5e34.zip |
* rt_socket.c: (kernel_rtm_ipv4) prefix_buf could be passed
to zlog_err() uninitialized with debug disabled. Fixed.
Diffstat (limited to 'zebra/rt_socket.c')
-rw-r--r-- | zebra/rt_socket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c index e8668a1dd..63e4612f3 100644 --- a/zebra/rt_socket.c +++ b/zebra/rt_socket.c @@ -207,6 +207,9 @@ kernel_rtm_ipv4 (int cmd, struct prefix *p, struct rib *rib, int family) case ZEBRA_ERR_RTNOEXIST: case ZEBRA_ERR_RTUNREACH: default: + /* This point is reachable regardless of debugging mode. */ + if (!IS_ZEBRA_DEBUG_RIB) + inet_ntop (AF_INET, &p->u.prefix, prefix_buf, INET_ADDRSTRLEN); zlog_err ("%s: %s/%d: rtm_write() unexpectedly returned %d for command %s", __func__, prefix_buf, p->prefixlen, error, LOOKUP (rtm_type_str, cmd)); break; |