]> git.michaelhowe.org Git - packages/o/openafs.git/commit
rx-init-more-packets-20080529
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 29 May 2008 14:31:41 +0000 (14:31 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 29 May 2008 14:31:41 +0000 (14:31 +0000)
commit749ae65481ebc70f310fdd79d2cb0139a636f27e
treeb530efb5cef5cf9f48087fa1392eb71740e00537
parent11350e8024c8413dab5f91cfcd2155d26356329f
rx-init-more-packets-20080529

LICENSE MIT

It is frequently the case that rx_getAllAddr() is called before
rx_Init() or rx_InitHost().  rx_getAllAddr() obtains the list of
interfaces by using rx_GetIFInfo() which in turn computes and
allocates the number of addition rx packets.  Unfortunately,
rxi_MorePackets() relies on the existence of an initialized mutex
and the mutex is not initialized (on Windows) until the rx_InitHost()
call.  Therefore, we must delay the rxi_MorePackets() call until
after rx_InitHost() if rx_getAllAddr() is called previously.

Failure to do so results in a panic.
src/rx/rx.c
src/rx/rx_user.c