From 6854e03ca5afa7bc8223ff41397811eda2d1eb9c Mon Sep 17 00:00:00 2001 From: pk910 Date: Fri, 4 Jan 2013 22:11:20 +0100 Subject: [PATCH] fixed NULL pointer crash when returning to default fakehost --- src/mod-hostserv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod-hostserv.c b/src/mod-hostserv.c index 4d16996..291fac2 100644 --- a/src/mod-hostserv.c +++ b/src/mod-hostserv.c @@ -342,7 +342,7 @@ static void hs_activate_assignment(struct hs_user *user, struct hs_assignment *a assert((!assignment || (assignment->user == user))); if(user->assignments) { - for(assgn = assignment->user->assignments; assgn; assgn = assgn->unext) + for(assgn = user->assignments; assgn; assgn = assgn->unext) assgn->active = 0; } -- 2.20.1