mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- better casts in pipe code, brackets placed wrongly.
- iana portlist updated. git-svn-id: file:///svn/unbound/trunk@2006 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
9d5b202720
commit
c73dc79252
3 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
|||
3 March 2010: Wouter
|
||||
- better casts in pipe code, brackets placed wrongly.
|
||||
- iana portlist updated.
|
||||
|
||||
1 March 2010: Wouter
|
||||
- make install depends on make all.
|
||||
- Fix 5011 auto-trust-anchor-file initial read to skip RRSIGs.
|
||||
|
|
|
|||
|
|
@ -4064,6 +4064,7 @@
|
|||
5085,
|
||||
5092,
|
||||
5093,
|
||||
5094,
|
||||
5099,
|
||||
5100,
|
||||
5101,
|
||||
|
|
|
|||
|
|
@ -298,7 +298,7 @@ int tube_write_msg(struct tube* tube, uint8_t* buf, uint32_t len,
|
|||
return 0;
|
||||
/* write remainder */
|
||||
if(r != (ssize_t)sizeof(len)) {
|
||||
if(write(fd, (char*)(&len)+r, sizeof(len)-r) == -1) {
|
||||
if(write(fd, ((char*)&len)+r, sizeof(len)-r) == -1) {
|
||||
log_err("tube msg write failed: %s", strerror(errno));
|
||||
(void)fd_set_nonblock(fd);
|
||||
return 0;
|
||||
|
|
@ -337,7 +337,7 @@ int tube_read_msg(struct tube* tube, uint8_t** buf, uint32_t* len,
|
|||
return 0;
|
||||
/* read remainder */
|
||||
if(r != (ssize_t)sizeof(*len)) {
|
||||
if((r=read(fd, (char*)(len)+r, sizeof(*len)-r)) == -1) {
|
||||
if((r=read(fd, ((char*)len)+r, sizeof(*len)-r)) == -1) {
|
||||
log_err("tube msg read failed: %s", strerror(errno));
|
||||
(void)fd_set_nonblock(fd);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue