Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add millisecond resolution to log timestamps
[ric-plt/lib/rmr.git]
/
src
/
rmr
/
si
/
src
/
si95
/
siconnect.c
diff --git
a/src/rmr/si/src/si95/siconnect.c
b/src/rmr/si/src/si95/siconnect.c
index
77dce63
..
ad5135d
100644
(file)
--- a/
src/rmr/si/src/si95/siconnect.c
+++ b/
src/rmr/si/src/si95/siconnect.c
@@
-131,14
+131,12
@@
extern int SIconnect( struct ginfo_blk *gptr, char *abuf ) {
errno = 0;
if( tpptr->flags & TPF_SAFEC ) {
if( safe_connect( tpptr->fd, taddr, tpptr->palen ) != 0 ) { // fd closed on failure
errno = 0;
if( tpptr->flags & TPF_SAFEC ) {
if( safe_connect( tpptr->fd, taddr, tpptr->palen ) != 0 ) { // fd closed on failure
- SItrash( TP_BLK, tpptr );
tpptr->fd = -1;
}
} else {
if( CONNECT( tpptr->fd, taddr, tpptr->palen ) != 0 ) {
CLOSE( tpptr->fd ); // clean up fd and tp_block
tpptr->fd = -1;
tpptr->fd = -1;
}
} else {
if( CONNECT( tpptr->fd, taddr, tpptr->palen ) != 0 ) {
CLOSE( tpptr->fd ); // clean up fd and tp_block
tpptr->fd = -1;
- SItrash( TP_BLK, tpptr ); // free the trasnsport block
}
}
}
}
@@
-152,6
+150,8
@@
extern int SIconnect( struct ginfo_blk *gptr, char *abuf ) {
gptr->tplist = tpptr; // point at new head
fd = tpptr->fd; // save for return value
SImap_fd( gptr, fd, tpptr );
gptr->tplist = tpptr; // point at new head
fd = tpptr->fd; // save for return value
SImap_fd( gptr, fd, tpptr );
+ } else {
+ SItrash( TP_BLK, tpptr ); // free the trasnsport block
}
}
}
}