mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +03:00
r14014: Coverity paranoia. Shut it up by making the guarentee
in the code explicit - but this was a false positive (CID #16). Jeremy.
This commit is contained in:
parent
af0ade470f
commit
43a0e869f2
@ -47,7 +47,7 @@ BOOL prs_rpcbuffer(const char *desc, prs_struct *ps, int depth, RPC_BUFFER *buff
|
|||||||
{
|
{
|
||||||
prs_debug(ps, depth, desc, "prs_rpcbuffer");
|
prs_debug(ps, depth, desc, "prs_rpcbuffer");
|
||||||
depth++;
|
depth++;
|
||||||
|
|
||||||
/* reading */
|
/* reading */
|
||||||
if (UNMARSHALLING(ps)) {
|
if (UNMARSHALLING(ps)) {
|
||||||
buffer->size=0;
|
buffer->size=0;
|
||||||
@ -135,7 +135,12 @@ BOOL prs_rpcbuffer_p(const char *desc, prs_struct *ps, int depth, RPC_BUFFER **b
|
|||||||
}
|
}
|
||||||
return True;
|
return True;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Coverity paranoia. Buffer must be valid. */
|
||||||
|
if (!*buffer) {
|
||||||
|
return False;
|
||||||
|
}
|
||||||
|
|
||||||
return prs_rpcbuffer( desc, ps, depth, *buffer);
|
return prs_rpcbuffer( desc, ps, depth, *buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user