err2peer() previously returned garbage. Now it returns result of callee
authorDan Harkless <dan@harkless.org>
Fri, 16 Jul 1999 01:01:24 +0000 (01:01 +0000)
committerDan Harkless <dan@harkless.org>
Fri, 16 Jul 1999 01:01:24 +0000 (01:01 +0000)
verr2peer().

uip/vmhsbr.c

index 8ef0310..c874395 100644 (file)
@@ -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. */
 }