From: Steve Dickson <steved@redhat.com>
To: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: [PATCH 3/5] Fixed warnings in src/g_inq_cred.c
Date: Wed, 24 Oct 2012 14:08:42 -0400 [thread overview]
Message-ID: <1351102124-24036-4-git-send-email-steved@redhat.com> (raw)
In-Reply-To: <1351102124-24036-1-git-send-email-steved@redhat.com>
From: Yao Zhao <yao.zhao@windriver.com>
g_inq_cred.c:161:8: warning: passing argument 3 of
'generic_gss_copy_oid' from incompatible pointer type [enabled by default]
Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
---
src/g_inq_cred.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/g_inq_cred.c b/src/g_inq_cred.c
index 9f531d8..8367a56 100644
--- a/src/g_inq_cred.c
+++ b/src/g_inq_cred.c
@@ -152,13 +152,15 @@ gss_OID_set * mechanisms;
union_cred->count);
if ((*mechanisms)->elements == NULL) {
*minor_status = ENOMEM;
+ free(*mechanisms);
+ *mechanisms = GSS_C_NO_OID_SET;
return (GSS_S_FAILURE);
}
for (i=0; i < union_cred->count; i++) {
- status = generic_gss_copy_oid(minor_status,
+ status = generic_gss_add_oid_set_member(minor_status,
&union_cred->mechs_array[i],
- &((*mechanisms)->elements[i]));
+ mechanisms);
if (status != GSS_S_COMPLETE)
break;
}
--
1.7.11.7
next prev parent reply other threads:[~2012-10-24 18:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-24 18:08 [PATCH 0/5] libgssglue clean up Steve Dickson
2012-10-24 18:08 ` [PATCH 1/5] Fixed warnings in src/g_canon_name.c Steve Dickson
2012-10-24 18:08 ` [PATCH 2/5] Fixed warnings in src/g_initialize.c Steve Dickson
2012-10-24 18:08 ` Steve Dickson [this message]
2012-10-24 18:08 ` [PATCH 4/5] Fixed warnings in src/g_mit_krb5_mech.c Steve Dickson
2012-10-24 18:08 ` [PATCH 5/5] Fixed warnings in src/g_unseal.c and src/g_verify.c Steve Dickson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1351102124-24036-4-git-send-email-steved@redhat.com \
--to=steved@redhat.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).