diff options
author | Stefan Kempf <stefan@cvs.openbsd.org> | 2008-04-08 20:47:56 +0000 |
---|---|---|
committer | Stefan Kempf <stefan@cvs.openbsd.org> | 2008-04-08 20:47:56 +0000 |
commit | 9c1d7a1836dc55ec85d1eaff040bdc11ed1b7acb (patch) | |
tree | 29c8e617a04c89b2f852d31c31b5948336d18481 /sys/kern/uipc_usrreq.c | |
parent | 4e81511fd7f9315ac694b11bf743d9efbdf0c4aa (diff) |
unp_internalize() repaired wrong file structs on error. ok deraadt@, kettenis@
Diffstat (limited to 'sys/kern/uipc_usrreq.c')
-rw-r--r-- | sys/kern/uipc_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 1922a57ee19..13eb11b8521 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_usrreq.c,v 1.39 2008/04/02 19:09:13 deraadt Exp $ */ +/* $OpenBSD: uipc_usrreq.c,v 1.40 2008/04/08 20:47:55 stefan Exp $ */ /* $NetBSD: uipc_usrreq.c,v 1.18 1996/02/09 19:00:50 christos Exp $ */ /* @@ -792,8 +792,8 @@ morespace: fail: /* Back out what we just did. */ for ( ; i > 0; i--) { - bcopy(rp, &fp, sizeof(fp)); rp++; + bcopy(rp, &fp, sizeof(fp)); fp->f_count--; fp->f_msgcount--; unp_rights--; |