]> git.tuebingen.mpg.de Git - paraslash.git/commit
wng: fix two critical bugs
authorAndre <maan@p133.(none)>
Mon, 29 May 2006 22:56:35 +0000 (00:56 +0200)
committerAndre <maan@p133.(none)>
Mon, 29 May 2006 22:56:35 +0000 (00:56 +0200)
commitb23afbb1d859a79a2682a80420a7f3c693b210e6
treed77fff05267584d16b1ef3cf85ca5b136a577c4d
parentf5a29040feebefcec4472a67b3396b6bfae84f33
wng: fix two critical bugs

the open functions of the writers in a writer node group
might be interested to know which group they belong to.
Unfortunately, the old code called open before initializing
the "wng" pointer of the writer node.

The second bug triggers for example if invalid receiver options are
given. In this case wng_close() is called with a NULL-argument as
the wng has not been opened yet. The solution is to check for NULL
pointers and return immediately in this case.
write_common.c