Diff for /src/sys/net/ip6fw/ip6_fw.c between versions 1.6 and 1.7

version 1.6, 2004/01/06 03:17:26 version 1.7, 2004/04/22 04:22:00
Line 847  add_entry6(struct ip6_fw_head *chainptr, Line 847  add_entry6(struct ip6_fw_head *chainptr,
         u_short nbr = 0;          u_short nbr = 0;
         int s;          int s;
   
        fwc = malloc(sizeof *fwc, M_IP6FW, M_NOWAIT);        fwc = malloc(sizeof *fwc, M_IP6FW, M_INTWAIT);
        ftmp = malloc(sizeof *ftmp, M_IP6FW, M_NOWAIT);        ftmp = malloc(sizeof *ftmp, M_IP6FW, M_INTWAIT);
        if (!fwc || !ftmp) { 
                dprintf(("%s malloc said no\n", err_prefix)); 
                if (fwc)  free(fwc, M_IP6FW); 
                if (ftmp) free(ftmp, M_IP6FW); 
                return (ENOSPC); 
        } 
   
         bcopy(frwl, ftmp, sizeof(struct ip6_fw));          bcopy(frwl, ftmp, sizeof(struct ip6_fw));
         ftmp->fw_in_if.fu_via_if.name[IP6FW_IFNLEN - 1] = '\0';          ftmp->fw_in_if.fu_via_if.name[IP6FW_IFNLEN - 1] = '\0';

Removed from v.1.6  
changed lines
  Added in v.1.7