[asterisk-dev] bug of mmap return in 1.4.0

Russell Bryant russell at digium.com
Sun Dec 24 09:03:38 MST 2006


Tzafrir Cohen wrote:
> There seem to be quite of few similar cases in chan_zap.c . For
> instance, it seems that the caller to zt_get_event (which is a simple
> ioctl call wrapper) does not check for the return value of -1.

Well, that's not quite the same thing.  In the mmap case, the code attempted to 
check for an error, but it checked for the wrong value.  In this case, a 
"decision" was made not to check for it at all.  They would have to be handled 
on a case by case basis.

-- 
Russell Bryant
Software Engineer
Digium, Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: russell.vcf
Type: text/x-vcard
Size: 266 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20061224/e04814b5/russell.vcf


More information about the asterisk-dev mailing list