X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fgssd%2Fgssd_proc.c;h=3902b959240c2d237630a7b1e4f3d4016d9e4f75;hp=50a27e418f2add809d2a63fdd29a3716c2fd53c2;hb=f4321ac3466aa9d4c4e11ba232f1ff9bea561288;hpb=76be349d5dd07f55797cb9920cc275667258f10f diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c index 50a27e4..3902b95 100644 --- a/utils/gssd/gssd_proc.c +++ b/utils/gssd/gssd_proc.c @@ -655,7 +655,7 @@ parse_enctypes(char *enctypes) } num_krb5_enctypes = n; - if (cached_types = malloc(strlen(enctypes)+1)) + if ((cached_types = malloc(strlen(enctypes)+1))) strcpy(cached_types, enctypes); return 0; @@ -859,7 +859,7 @@ int create_auth_rpc_client(struct clnt_info *clp, * Do this before creating rpc connection since we won't need * rpc connection if it fails! */ - if (limit_krb5_enctypes(&sec, uid)) { + if (limit_krb5_enctypes(&sec)) { printerr(1, "WARNING: Failed while limiting krb5 " "encryption types for user with uid %d\n", uid); @@ -1189,7 +1189,7 @@ handle_gssd_upcall(struct clnt_info *clp) { uid_t uid; char *lbuf = NULL; - int lbuflen = 0, code; + int lbuflen = 0; char *p; char *mech = NULL; char *target = NULL; @@ -1251,7 +1251,7 @@ handle_gssd_upcall(struct clnt_info *clp) } if (parse_enctypes(enctypes) != 0) { printerr(0, "WARNING: handle_gssd_upcall: " - "parsing encryption types failed: errno %d\n", code); + "parsing encryption types failed: errno %d\n", errno); } }