Skip to content
Snippets Groups Projects
Commit 79cd7ef9 authored by Julien Chaffraix's avatar Julien Chaffraix
Browse files

krb5-gssapi: Made the function always return a value.

kr5_auth missed a final 'return' statement. This is not an error in
gcc but can lead to potential bugs.
parent 4b69f641
No related branches found
No related tags found
No related merge requests found
......@@ -170,7 +170,7 @@ krb5_encode(void *app_data, const void *from, int length, int level, void **to,
static int
krb5_auth(void *app_data, struct connectdata *conn)
{
int ret;
int ret = AUTH_OK;
char *p;
const char *host = conn->host.name;
ssize_t nread;
......@@ -316,6 +316,7 @@ krb5_auth(void *app_data, struct connectdata *conn)
service = srv_host;
}
return ret;
}
static void krb5_end(void *app_data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment