patch-2.1.37 linux/net/core/scm.c
Next file: linux/net/core/skbuff.c
Previous file: linux/net/core/firewall.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Mon May 12 10:35:44 1997
- Orig file:
v2.1.36/linux/net/core/scm.c
- Orig date:
Sun Jan 26 03:40:46 1997
diff -u --recursive --new-file v2.1.36/linux/net/core/scm.c linux/net/core/scm.c
@@ -243,7 +243,7 @@
int i;
struct file **fp = scm->fp->fp;
- if (fdnum > fdmax)
+ if (fdnum < fdmax)
fdmax = fdnum;
for (i=0, cmfptr=(int*)cm->cmsg_data; i<fdmax; i++, cmfptr++)
@@ -253,7 +253,6 @@
break;
current->files->fd[new_fd] = fp[i];
err = put_user(new_fd, cmfptr);
- cmfptr++;
}
if (i > 0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov