git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a614a8d
)
rx-rdwr-avoid-free-null-packet-20081026
author
Jeffrey Altman
<jaltman@secure-endpoints.com>
Sun, 26 Oct 2008 21:16:57 +0000 (21:16 +0000)
committer
Jeffrey Altman
<jaltman@secure-endpoints.com>
Sun, 26 Oct 2008 21:16:57 +0000 (21:16 +0000)
LICENSE MIT
avoid a potential call to rxi_FreePacket with a NULL pointer as input
src/rx/rx_rdwr.c
patch
|
blob
|
history
diff --git
a/src/rx/rx_rdwr.c
b/src/rx/rx_rdwr.c
index
59828fb
..
35fcce6
100644
(file)
--- a/
src/rx/rx_rdwr.c
+++ b/
src/rx/rx_rdwr.c
@@
-389,7
+389,7
@@
rx_ReadProc32(struct rx_call *call, afs_int32 * value)
call->curpos = tcurpos + sizeof(afs_int32);
call->curlen = (u_short)(tcurlen - sizeof(afs_int32));
call->nLeft = (u_short)(tnLeft - sizeof(afs_int32));
- if (!call->nLeft) {
+ if (!call->nLeft && call->currentPacket != NULL) {
/* out of packet. Get another one. */
NETPRI;
MUTEX_ENTER(&call->lock);