diff options
| author | Reuben Dowle <reuben.dowle@4rf.com> | 2021-03-24 16:36:49 +1300 | 
|---|---|---|
| committer | Reuben Dowle <reuben.dowle@4rf.com> | 2021-05-18 14:27:05 +1200 | 
| commit | f07757ae1eb78718f3b6a90a47db8d3678d30471 (patch) | |
| tree | 439af956928fe99c7d5f9bfecfc12cbaeb078aa3 /nhrpd | |
| parent | 5e6f6c964d70a2afbafeae50cb0ce5c343734973 (diff) | |
nhrpd: Fix corrupt address being shown for shortcuts with no cache entry
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
Diffstat (limited to 'nhrpd')
| -rw-r--r-- | nhrpd/nhrp_vty.c | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/nhrpd/nhrp_vty.c b/nhrpd/nhrp_vty.c index 420ea12ec1..a032252507 100644 --- a/nhrpd/nhrp_vty.c +++ b/nhrpd/nhrp_vty.c @@ -844,6 +844,7 @@ static void show_ip_nhrp_shortcut(struct nhrp_shortcut *s, void *pctx)  	ctx->count++;  	c = s->cache; +	buf2[0] = '\0';  	if (c)  		sockunion2str(&c->remote_addr, buf2, sizeof(buf2));  	prefix2str(s->p, buf1, sizeof(buf1));  | 
