Преглед изворни кода

Fix passing no user into user_has_host() not properly looking up user

Bryan Drewery пре 13 година
родитељ
комит
3df494b24e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/userrec.c

+ 1 - 1
src/userrec.c

@@ -278,7 +278,7 @@ bool user_has_host(const char *handle, struct userrec *u, char *host)
     return 0;
 
   if (!u && handle)
-    get_user_by_handle(userlist, (char *) handle);
+    u = get_user_by_handle(userlist, (char *) handle);
 
   if (!u)
     return 0;