Skip to content
Snippets Groups Projects
Commit 6ab43721 authored by deuce's avatar deuce
Browse files

Use conn_api.close() not modem_close() for shared connect() code.

parent 2681f42b
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment