(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/quota/quota-fs.c) |
| |
| 432 | | | auth_destroy(cl->cl_auth);
x /usr/include/rpc/auth.h |
| |
138 | #define auth_destroy(auth) \ |
139 | ((*((auth)->ah_ops->ah_destroy))(auth)) |
| |
|
| 433 | | | cl->cl_auth = authunix_create_default(); |
| 434 | | | |
| 435 | | | |
| 436 | | | args.gqa_pathp = path; |
| 437 | | | args.gqa_id = root->gid; |
| 438 | | | args.gqa_type = GRPQUOTA;
x /usr/include/sys/quota.h |
| |
76 | #define GRPQUOTA 1 /* element used for group quotas */ |
| |
|
| 439 | | | timeout.tv_sec = RQUOTA_GETQUOTA_TIMEOUT_SECS; |
| 440 | | | timeout.tv_usec = 0; |
| 441 | | | |
| 442 | | | call_status = clnt_call(cl, RQUOTAPROC_GETQUOTA,
x /usr/include/rpc/clnt.h |
| |
169 | #define clnt_call(rh, proc, xargs, argsp, xres, resp, secs) \ |
170 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp, secs)) |
| |
|
| 443 | | | (xdrproc_t)xdr_ext_getquota_args, (char *)&args, |
| 444 | | | (xdrproc_t)xdr_getquota_rslt, (char *)&result, |
| 445 | | | timeout); |
Varargs Function Cast
Casting xdr_getquota_rslt to this new type could lead to unsafe program behavior. - The previous type had a fixed number of arguments.
- The new type has a variable number of arguments.
|
|
| 446 | | | |
| 447 | | | |
| 448 | | | auth_destroy(cl->cl_auth);
x /usr/include/rpc/auth.h |
| |
138 | #define auth_destroy(auth) \ |
139 | ((*((auth)->ah_ops->ah_destroy))(auth)) |
| |
|
| 449 | | | clnt_destroy(cl);
x /usr/include/rpc/clnt.h |
| |
244 | #define clnt_destroy(rh) ((*(rh)->cl_ops->cl_destroy)(rh)) |
| |
|
| 450 | | | |
| 451 | | | if (call_status != RPC_SUCCESS) { |
| 452 | | | const char *rpc_error_msg = clnt_sperrno(call_status); |
| 453 | | | |
| 454 | | | i_error("quota-fs: remote ext rquota call failed: %s", |
| 455 | | | rpc_error_msg); |
| |