diff src/dccifd.cpp @ 371:df7dc6b2b153

install dnsblnogrey/whiteclnt for dccifd
author Carl Byington <carl@five-ten-sg.com>
date Wed, 08 Feb 2017 10:03:40 -0800
parents 3fee608becbc
children 5209e92b4885
line wrap: on
line diff
--- a/src/dccifd.cpp	Tue Feb 07 18:09:52 2017 -0800
+++ b/src/dccifd.cpp	Wed Feb 08 10:03:40 2017 -0800
@@ -105,6 +105,7 @@
 void DccInterface::mlfi_header(SMFICTX *ctx, const char *headerf, const char *headerv)
 {
 	if (dccifd_socket == NULL_SOCKET) Connect();
+    if (err) return;
 	if ((dccifd_socket != NULL_SOCKET) && (!dccifd_input.empty())) {
 		output(dccifd_input);
 		dccifd_input = "";
@@ -275,7 +276,6 @@
 
 void DccInterface::output(const char* buffer, size_t size)
 {
-	// if there are problems, fail.
 	if (err) return;
 
 	// buffer it if not connected yet