소스 검색

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;