Fix misc warning messages
authorKevin Coffman <kwc@citi.umich.edu>
Fri, 13 Oct 2006 19:35:43 +0000 (15:35 -0400)
committerNeil Brown <neilb@suse.de>
Mon, 16 Oct 2006 23:46:39 +0000 (09:46 +1000)
Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Clean up a few warning messages.

utils/gssd/context_mit.c
utils/gssd/gssd_proc.c
utils/gssd/krb5_util.c

index c0b494b..5eb900f 100644 (file)
@@ -183,7 +183,7 @@ prepare_krb5_rfc1964_buffer(gss_krb5_lucid_context_v1_t *lctx,
        if (WRITE_BYTES(&p, end, lctx->endtime)) goto out_err;
        word_send_seq = lctx->send_seq; /* XXX send_seq is 64-bit */
        if (WRITE_BYTES(&p, end, word_send_seq)) goto out_err;
-       if (write_buffer(&p, end, (gss_buffer_desc*)&krb5oid)) goto out_err;
+       if (write_oid(&p, end, &krb5oid)) goto out_err;
 
        printerr(2, "prepare_krb5_rfc1964_buffer: serializing keys with "
                 "enctype %d and length %d\n",
index c268497..68d645d 100644 (file)
@@ -47,6 +47,7 @@
 #include <sys/stat.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>
+#include <sys/fsuid.h>
 
 #include <stdio.h>
 #include <stdlib.h>
index 2f5e70e..e46715b 100644 (file)
@@ -178,6 +178,7 @@ gssd_find_existing_krb5_ccache(uid_t uid, struct dirent **d)
        struct dirent *best_match_dir = NULL;
        struct stat best_match_stat, tmp_stat;
 
+       memset(&best_match_stat, 0, sizeof(best_match_stat));
        *d = NULL;
        n = scandir(ccachedir, &namelist, select_krb5_ccache, 0);
        if (n < 0) {