diff options
Diffstat (limited to 'include/linux/sunrpc/svcauth.h')
| -rw-r--r-- | include/linux/sunrpc/svcauth.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svcauth.h b/include/linux/sunrpc/svcauth.h index 7c3656505847..04e404a07882 100644 --- a/include/linux/sunrpc/svcauth.h +++ b/include/linux/sunrpc/svcauth.h | |||
| @@ -31,6 +31,7 @@ struct svc_cred { | |||
| 31 | /* name of form servicetype@hostname, passed down by | 31 | /* name of form servicetype@hostname, passed down by |
| 32 | * rpc.svcgssd, or computed from the above: */ | 32 | * rpc.svcgssd, or computed from the above: */ |
| 33 | char *cr_principal; | 33 | char *cr_principal; |
| 34 | char *cr_targ_princ; | ||
| 34 | struct gss_api_mech *cr_gss_mech; | 35 | struct gss_api_mech *cr_gss_mech; |
| 35 | }; | 36 | }; |
| 36 | 37 | ||
| @@ -39,6 +40,7 @@ static inline void init_svc_cred(struct svc_cred *cred) | |||
| 39 | cred->cr_group_info = NULL; | 40 | cred->cr_group_info = NULL; |
| 40 | cred->cr_raw_principal = NULL; | 41 | cred->cr_raw_principal = NULL; |
| 41 | cred->cr_principal = NULL; | 42 | cred->cr_principal = NULL; |
| 43 | cred->cr_targ_princ = NULL; | ||
| 42 | cred->cr_gss_mech = NULL; | 44 | cred->cr_gss_mech = NULL; |
| 43 | } | 45 | } |
| 44 | 46 | ||
| @@ -48,6 +50,7 @@ static inline void free_svc_cred(struct svc_cred *cred) | |||
| 48 | put_group_info(cred->cr_group_info); | 50 | put_group_info(cred->cr_group_info); |
| 49 | kfree(cred->cr_raw_principal); | 51 | kfree(cred->cr_raw_principal); |
| 50 | kfree(cred->cr_principal); | 52 | kfree(cred->cr_principal); |
| 53 | kfree(cred->cr_targ_princ); | ||
| 51 | gss_mech_put(cred->cr_gss_mech); | 54 | gss_mech_put(cred->cr_gss_mech); |
| 52 | init_svc_cred(cred); | 55 | init_svc_cred(cred); |
| 53 | } | 56 | } |
