From 66f3183c54e3c27c0224226fa60bf8b933190b4a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 28 Aug 2013 17:04:31 +0200 Subject: Use right signedness for creds buffer. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gp_export_creds_*() functions are using a arrays of int32_t values, however this array holds uids and gids which are unsigned integers. Signed-off-by: Günther Deschner --- proxy/src/gp_export.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/src/gp_export.c b/proxy/src/gp_export.c index 56aaf57..2710589 100644 --- a/proxy/src/gp_export.c +++ b/proxy/src/gp_export.c @@ -678,7 +678,7 @@ int gp_get_export_creds_type(struct gssx_call_ctx *ctx) static uint32_t gp_export_creds_enoent(uint32_t *min, gss_buffer_t buf) { - int32_t *p; + uint32_t *p; p = malloc(CREDS_HDR); if (!p) { @@ -704,7 +704,7 @@ static uint32_t gp_export_creds_linux(uint32_t *min, gss_name_t name, struct passwd pwd, *res; char *pwbuf = NULL; char *grbuf = NULL; - int32_t *p; + uint32_t *p; size_t len; int count, num; int ret; -- cgit