Obvious problem, someone forgot to initialize a variable who's value
might then be bogus if a later jump was taken. Looks like this one
could have caused real problems if a gateway were not directly reachable.
AUTHOR: Charles Hannum
386BSD-Patchkit: patch00095
* SUCH DAMAGE.
*
* @(#)route.c 7.22 (Berkeley) 6/27/91
* SUCH DAMAGE.
*
* @(#)route.c 7.22 (Berkeley) 6/27/91
+ *
+ * PATCHES MAGIC LEVEL PATCH THAT GOT US HERE
+ * -------------------- ----- ----------------------
+ * CURRENT PATCH LEVEL: 1 00095
+ * -------------------- ----- ----------------------
+ *
+ * 27 Feb 93 Charles Hannum & ??? Proper initialization of *rt
+ *
#include "param.h"
#include "systm.h"
#include "proc.h"
#include "param.h"
#include "systm.h"
#include "proc.h"
int flags;
struct rtentry **rtp;
{
int flags;
struct rtentry **rtp;
{
- register struct rtentry *rt;
+ register struct rtentry *rt = 0;
int error = 0;
short *stat = 0;
int error = 0;
short *stat = 0;