}
num_krb5_enctypes = n;
- if (cached_types = malloc(strlen(enctypes)+1))
+ if ((cached_types = malloc(strlen(enctypes)+1)))
strcpy(cached_types, enctypes);
return 0;
* 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);
{
uid_t uid;
char *lbuf = NULL;
- int lbuflen = 0, code;
+ int lbuflen = 0;
char *p;
char *mech = NULL;
char *target = NULL;
}
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);
}
}