|
@@ -260,7 +260,10 @@ struct svc_rqst {
|
|
|
void * rq_argp; /* decoded arguments */
|
|
|
void * rq_resp; /* xdr'd results */
|
|
|
void * rq_auth_data; /* flavor-specific data */
|
|
|
-
|
|
|
+ int rq_auth_slack; /* extra space xdr code
|
|
|
+ * should leave in head
|
|
|
+ * for krb5i, krb5p.
|
|
|
+ */
|
|
|
int rq_reserved; /* space on socket outq
|
|
|
* reserved for this request
|
|
|
*/
|
|
@@ -456,11 +459,7 @@ char * svc_print_addr(struct svc_rqst *, char *, size_t);
|
|
|
*/
|
|
|
static inline void svc_reserve_auth(struct svc_rqst *rqstp, int space)
|
|
|
{
|
|
|
- int added_space = 0;
|
|
|
-
|
|
|
- if (rqstp->rq_authop->flavour)
|
|
|
- added_space = RPC_MAX_AUTH_SIZE;
|
|
|
- svc_reserve(rqstp, space + added_space);
|
|
|
+ svc_reserve(rqstp, space + rqstp->rq_auth_slack);
|
|
|
}
|
|
|
|
|
|
#endif /* SUNRPC_SVC_H */
|