diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-07-17 06:55:03 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-07-17 06:55:03 +0000 |
commit | 161871f78da6de14257707a0dac9a7648fbca22c (patch) | |
tree | 5d74a540e69a9df10ba67595270187be28808648 /usr.sbin/amd | |
parent | 787c655aab246c31a56e5845f331297ef075a875 (diff) |
Do not use after free; from Tor Egge via freebsd.
ok matthieu@ deraadt@
Diffstat (limited to 'usr.sbin/amd')
-rw-r--r-- | usr.sbin/amd/amd/afs_ops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/amd/amd/afs_ops.c b/usr.sbin/amd/amd/afs_ops.c index 43a20c3d182..db628208588 100644 --- a/usr.sbin/amd/amd/afs_ops.c +++ b/usr.sbin/amd/amd/afs_ops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: afs_ops.c,v 1.11 2003/06/02 23:36:51 millert Exp $ */ +/* $OpenBSD: afs_ops.c,v 1.12 2004/07/17 06:55:02 otto Exp $ */ /* * Copyright (c) 1990 Jan-Simon Pendry @@ -1518,8 +1518,8 @@ in_progrss: return new_mp; } - if (error && (cp->mp->am_mnt->mf_ops == &efs_ops)) - cp->mp->am_error = error; + if (error && (new_mp->am_mnt->mf_ops == &efs_ops)) + new_mp->am_error = error; assign_error_mntfs(new_mp); |