* rt_socket.c: (kernel_rtm_ipv4) prefix_buf could be passed
  to zlog_err() uninitialized with debug disabled. Fixed.
diff --git a/zebra/ChangeLog b/zebra/ChangeLog
index 646027b..b7c4d5c 100644
--- a/zebra/ChangeLog
+++ b/zebra/ChangeLog
@@ -1,3 +1,8 @@
+2007-09-12 Denis Ovsienko
+
+	* rt_socket.c: (kernel_rtm_ipv4) prefix_buf could be passed
+	  to zlog_err() uninitialized with debug disabled. Fixed.
+
 2007-09-06 Denis Ovsienko
 
 	* rtread_sysctl.c: (route_read) Set RTF_DONE on the routing
diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c
index e8668a1..63e4612 100644
--- a/zebra/rt_socket.c
+++ b/zebra/rt_socket.c
@@ -207,6 +207,9 @@
              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;