From c2e6f85db9a1bfc5c5887ba82b56a683eba2d3fa Mon Sep 17 00:00:00 2001 From: snar Date: Mon, 19 May 2008 13:53:36 +0000 Subject: [PATCH] bugfix in sx_prefix.c --- sx_prefix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sx_prefix.c b/sx_prefix.c index 01307da..36e3c70 100644 --- a/sx_prefix.c +++ b/sx_prefix.c @@ -70,7 +70,7 @@ sx_prefix_parse(struct sx_prefix* p, int af, char* text) }; if(inet_pton(af,text,&p->addr)!=1) { - *c='/'; + if(c) *c='/'; sx_report(SX_ERROR,"Unable to parse prefix %s, af=%i\n",text,af); goto fixups; };