From 6ee86a18ee336cce7df303753e4989e519162cf5 Mon Sep 17 00:00:00 2001 From: Dan Harkless Date: Fri, 16 Jul 1999 01:01:24 +0000 Subject: [PATCH] err2peer() previously returned garbage. Now it returns result of callee verr2peer(). --- uip/vmhsbr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uip/vmhsbr.c b/uip/vmhsbr.c index 8ef0310..c874395 100644 --- a/uip/vmhsbr.c +++ b/uip/vmhsbr.c @@ -164,11 +164,13 @@ fmt2peer (char code, char *fmt, ...) int err2peer (char code, char *what, char *fmt, ...) { + int return_value; va_list ap; va_start(ap, fmt); - verr2peer(code, what, fmt, ap); + return_value = verr2peer(code, what, fmt, ap); va_end(ap); + return return_value; /* This routine returned garbage before 1999-07-15. */ } -- 1.7.10.4