From 10658ebe604bd0fe5285cd690eae194b7ad86bf9 Mon Sep 17 00:00:00 2001 From: leitner Date: Fri, 5 Aug 2005 14:38:28 +0000 Subject: [PATCH] only write if dest is non-NULL --- socket/fmt_ip6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socket/fmt_ip6.c b/socket/fmt_ip6.c index a018884..20ab8b9 100644 --- a/socket/fmt_ip6.c +++ b/socket/fmt_ip6.c @@ -40,7 +40,7 @@ unsigned int fmt_ip6(char *s,const char ip[16]) } } } - if (compressing) { *s++=':'; ++len; } + if (compressing) { if (s) *s++=':'; ++len; } /* if (s) *s=0; */ return len;