nntp_list(): return real error code instead of hardcoded NN_ERROR
[claws.git] / src / nntp.c
index 20ea82ef6ddcc9ed7be7cb5de047f7918448f33f..1dbca21972085a2835bc2419e58de127f7a70437 100644 (file)
@@ -303,7 +303,7 @@ gint nntp_list(SockInfo *sock)
        nntp_gen_send(sock, "LIST");
 
        if ((ok = nntp_ok(sock, buf)) != NN_SUCCESS)
-               return NN_ERROR;
+               return ok;
 
        if (verbose)
                log_print("NNTP< %s\n", buf);