X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=common%2Fauth.c;fp=common%2Fauth.c;h=d460b418072c5e4a7e2a0ed891fe4710dcf2805d;hb=3e3138025852408ef03f3213972e042e12841bed;hp=ca4017eaaa00c24abde6fbcaf322c5c618879e37;hpb=f0c9b096117c7f0822a888239c67e39cb6722bf5;p=blerg.git diff --git a/common/auth.c b/common/auth.c index ca4017e..d460b41 100644 --- a/common/auth.c +++ b/common/auth.c @@ -347,6 +347,7 @@ char * auth_login(const char *username, const char *password) { int auth_logout(const char *username, const char *token) { char filename[FILENAME_MAX]; struct stringring *sr; + int ret; if (!valid_name(username)) return 0; @@ -359,10 +360,10 @@ int auth_logout(const char *username, const char *token) { if (sr == NULL) { return 0; } - stringring_remove(sr, token); + ret = stringring_remove(sr, token); stringring_close(sr); - return 1; + return ret; } int auth_check_token(const char *username, const char *given_token) {