This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[hurd,commited] hurd: Fix spawni's user_link reallocation
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: libc-alpha at sourceware dot org
- Cc: Samuel Thibault <samuel dot thibault at ens-lyon dot org>, commit-hurd at gnu dot org
- Date: Sun, 11 Nov 2018 20:15:14 +0100
- Subject: [hurd,commited] hurd: Fix spawni's user_link reallocation
* hurd/hurd/userlink.h (_hurd_userlink_move): Make new_link's
predecessor point to new_link instead of link.
---
hurd/hurd/userlink.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hurd/hurd/userlink.h b/hurd/hurd/userlink.h
index 484706a67a..b23567e218 100644
--- a/hurd/hurd/userlink.h
+++ b/hurd/hurd/userlink.h
@@ -158,11 +158,11 @@ _hurd_userlink_move (struct hurd_userlink *new_link,
if (new_link->resource.next != NULL)
new_link->resource.next->resource.prevp = &new_link->resource.next;
- *new_link->resource.prevp = link;
+ *new_link->resource.prevp = new_link;
if (new_link->thread.next != NULL)
new_link->thread.next->thread.prevp = &new_link->thread.next;
- *new_link->thread.prevp = link;
+ *new_link->thread.prevp = new_link;
}
# endif
#endif
--
2.19.1