fixed another NULL pointer crash in the same function (see previous commit)
authorpk910 <philipp@zoelle1.de>
Fri, 4 Jan 2013 21:15:15 +0000 (22:15 +0100)
committerpk910 <philipp@zoelle1.de>
Fri, 4 Jan 2013 21:15:15 +0000 (22:15 +0100)
src/mod-hostserv.c

index 291fac2dc60d61f3d73f66c9a5e13f344b13e0e4..3643fceda0b7af91870a33128d41f3ef1a17997f 100644 (file)
@@ -359,7 +359,7 @@ static void hs_activate_assignment(struct hs_user *user, struct hs_assignment *a
         assignment->active = 1;
     }
     
-    apply_fakehost(assignment->user->hi, NULL);
+    apply_fakehost(user->hi, NULL);
 }
 
 static struct hs_assignment *hs_add_assignment(struct hs_secondlevel *slfh, struct hs_user *user) {