diff options
author | Julien Chaffraix <julien.chaffraix@gmail.com> | 2010-10-02 00:39:51 -0700 |
---|---|---|
committer | Julien Chaffraix <julien.chaffraix@gmail.com> | 2010-10-02 10:00:42 -0700 |
commit | 79cd7ef9ab52de98bffcbd1c8db6103ff985a263 (patch) | |
tree | bbde419362479ebe99d2b736169660278fd0c101 /lib/krb5.c | |
parent | 4b69f641a6aea8027e948d3e08ccffda307059b5 (diff) | |
download | curl-79cd7ef9ab52de98bffcbd1c8db6103ff985a263.tar.gz |
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.
Diffstat (limited to 'lib/krb5.c')
-rw-r--r-- | lib/krb5.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/krb5.c b/lib/krb5.c index 5658bf428..842bda17b 100644 --- a/lib/krb5.c +++ b/lib/krb5.c @@ -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) |