summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2013-08-28 17:04:31 +0200
committerGünther Deschner <gdeschner@redhat.com>2013-08-28 17:04:58 +0200
commit66f3183c54e3c27c0224226fa60bf8b933190b4a (patch)
treed3980721bd53f9fee04cb435d1a9b9d839abe6f0
parent659064bbe7b6596b40bd4fc238519cda2636997e (diff)
downloadgss-proxy-66f3183c54e3c27c0224226fa60bf8b933190b4a.tar.gz
gss-proxy-66f3183c54e3c27c0224226fa60bf8b933190b4a.tar.xz
gss-proxy-66f3183c54e3c27c0224226fa60bf8b933190b4a.zip
Use right signedness for creds buffer.
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 <gdeschner@redhat.com>
-rw-r--r--proxy/src/gp_export.c4
1 files 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;