(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/quota/quota-fs.c) |
| |
| 331 | | | |
| 332 | | | auth_destroy(cl->cl_auth);
x /usr/include/rpc/auth.h |
| |
138 | #define auth_destroy(auth) \ |
139 | ((*((auth)->ah_ops->ah_destroy))(auth)) |
| |
|
| 333 | | | cl->cl_auth = authunix_create_default(); |
| 334 | | | |
| 335 | | | |
| 336 | | | args.gqa_pathp = path; |
| 337 | | | args.gqa_uid = root->uid; |
| 338 | | | |
| 339 | | | timeout.tv_sec = RQUOTA_GETQUOTA_TIMEOUT_SECS; |
| 340 | | | timeout.tv_usec = 0; |
| 341 | | | 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)) |
| |
|
| 342 | | | (xdrproc_t)xdr_getquota_args, (char *)&args, |
| 343 | | | (xdrproc_t)xdr_getquota_rslt, (char *)&result, |
| 344 | | | 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.
|
|
| 345 | | | |
| 346 | | | |
| 347 | | | auth_destroy(cl->cl_auth);
x /usr/include/rpc/auth.h |
| |
138 | #define auth_destroy(auth) \ |
139 | ((*((auth)->ah_ops->ah_destroy))(auth)) |
| |
|
| 348 | | | clnt_destroy(cl);
x /usr/include/rpc/clnt.h |
| |
244 | #define clnt_destroy(rh) ((*(rh)->cl_ops->cl_destroy)(rh)) |
| |
|
| 349 | | | |
| 350 | | | if (call_status != RPC_SUCCESS) { |
| 351 | | | const char *rpc_error_msg = clnt_sperrno(call_status); |
| 352 | | | |
| 353 | | | i_error("quota-fs: remote rquota call failed: %s", |
| 354 | | | rpc_error_msg); |
| |