Commit a9cfd37d a9cfd37d0084b115708f4f5e6e3495f94427f691 by Sergey Poznyakoff

(folder_pop_get_authority): Return an appropriate error code.

1 parent b55b1cb2
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
30 #endif 30 #endif
31 31
32 #include <mailutils/auth.h> 32 #include <mailutils/auth.h>
33 #include <mailutils/errno.h>
33 #include <mailutils/mailbox.h> 34 #include <mailutils/mailbox.h>
34 35
35 #include <folder0.h> 36 #include <folder0.h>
...@@ -123,7 +124,7 @@ folder_pop_get_authority (folder_t folder, authority_t *pauth) ...@@ -123,7 +124,7 @@ folder_pop_get_authority (folder_t folder, authority_t *pauth)
123 } 124 }
124 else 125 else
125 { 126 {
126 status = ENOSYS; 127 status = MU_ERR_BAD_AUTH_SCHEME;
127 } 128 }
128 } 129 }
129 if (pauth) 130 if (pauth)
......