BSD 4_4_Lite2 release
[unix-history] / usr / src / sbin / routed / inet.c
index 925472c..0ac515b 100644 (file)
@@ -32,7 +32,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)inet.c     8.2 (Berkeley) 8/14/93";
+static char sccsid[] = "@(#)inet.c     8.3 (Berkeley) 12/30/94";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -143,9 +143,9 @@ inet_maskof(inaddr)
        } else if (IN_CLASSA(i)) {
                mask = IN_CLASSA_NET;
        } else if (IN_CLASSB(i)) {
        } else if (IN_CLASSA(i)) {
                mask = IN_CLASSA_NET;
        } else if (IN_CLASSB(i)) {
-               mask = i & IN_CLASSB_NET;
+               mask = IN_CLASSB_NET;
        } else
        } else
-               mask = i & IN_CLASSC_NET;
+               mask = IN_CLASSC_NET;
 
        /*
         * Check whether network is a subnet;
 
        /*
         * Check whether network is a subnet;