summaryrefslogtreecommitdiff
path: root/server/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-02-12 14:15:27 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-02-18 13:48:44 -0500
commit2c5bf74c71443f1680fef4fc0daa4a4c9dd10ad8 (patch)
treea4ef215d1fc40fadbed9bb5497fa32a96d151d39 /server/providers
parenta40a817535c28712e27fe2c0f87817af43a249a2 (diff)
downloadsssd-2c5bf74c71443f1680fef4fc0daa4a4c9dd10ad8.tar.gz
sssd-2c5bf74c71443f1680fef4fc0daa4a4c9dd10ad8.tar.bz2
sssd-2c5bf74c71443f1680fef4fc0daa4a4c9dd10ad8.zip
Supress warnings with -O2
Diffstat (limited to 'server/providers')
-rw-r--r--server/providers/krb5/krb5_auth.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/providers/krb5/krb5_auth.c b/server/providers/krb5/krb5_auth.c
index fd0a0639..50f033eb 100644
--- a/server/providers/krb5/krb5_auth.c
+++ b/server/providers/krb5/krb5_auth.c
@@ -779,7 +779,7 @@ static void get_user_attr_done(void *pvt, int err, struct ldb_result *res)
struct tevent_req *req;
krb5_error_code kerr;
int ret;
- struct pam_data *pd;
+ struct pam_data *pd = talloc_get_type(be_req->req_data, struct pam_data);
int pam_status=PAM_SYSTEM_ERR;
int dp_err = DP_ERR_FATAL;
const char *ccache_file = NULL;
@@ -791,7 +791,6 @@ static void get_user_attr_done(void *pvt, int err, struct ldb_result *res)
goto failed;
}
- pd = kr->pd;
krb5_ctx = kr->krb5_ctx;
if (err != LDB_SUCCESS) {
@@ -999,8 +998,8 @@ static void krb5_child_done(struct tevent_req *req)
struct pam_data *pd = kr->pd;
struct be_req *be_req = kr->req;
int ret;
- uint8_t *buf;
- ssize_t len;
+ uint8_t *buf = NULL;
+ ssize_t len = -1;
ssize_t pref_len;
int p;
int32_t *msg_status;