From 6ab437211ae72e6f6e2952fcbaeb55ced0d93373 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Mon, 21 Jan 2008 06:40:03 +0000 Subject: [PATCH] Use conn_api.close() not modem_close() for shared connect() code. --- src/syncterm/modem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/syncterm/modem.c b/src/syncterm/modem.c index 107adefd6a..45fafaa24c 100644 --- a/src/syncterm/modem.c +++ b/src/syncterm/modem.c @@ -258,23 +258,23 @@ int modem_connect(struct bbslist *bbs) } if(!create_conn_buf(&conn_inbuf, BUFFER_SIZE)) { - modem_close(); + conn_api.close(); return(-1); } if(!create_conn_buf(&conn_outbuf, BUFFER_SIZE)) { - modem_close(); + conn_api.close(); destroy_conn_buf(&conn_inbuf); return(-1); } if(!(conn_api.rd_buf=(unsigned char *)malloc(BUFFER_SIZE))) { - modem_close(); + conn_api.close(); destroy_conn_buf(&conn_inbuf); destroy_conn_buf(&conn_outbuf); return(-1); } conn_api.rd_buf_size=BUFFER_SIZE; if(!(conn_api.wr_buf=(unsigned char *)malloc(BUFFER_SIZE))) { - modem_close(); + conn_api.close(); destroy_conn_buf(&conn_inbuf); destroy_conn_buf(&conn_outbuf); FREE_AND_NULL(conn_api.rd_buf); -- GitLab