dma: various code hardening
authorSimon Schubert <corecode@dragonflybsd.org>
Thu, 9 Jul 2009 12:37:16 +0000 (14:37 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Thu, 16 Jul 2009 14:13:05 +0000 (16:13 +0200)
commit2922fd2bd6788906dceed0495a001f3d31177256
tree0ae28feb84b174c8a2da93a5098b1bf447db039b
parente3690cec6ca6013b349f554f5f641a7f259980c0
dma: various code hardening

(as found by the Debian hardening wrapper)

- check the result of fgets()
- loop the network writes until the whole thing is sent
- check one more write() result

Submitted-by: Peter Pentchev <roam@ringlet.net>
libexec/dma/conf.c
libexec/dma/dma.c
libexec/dma/net.c