repo: tlswrap
action: commit
revision: 
path_from: 
revision_from: 91fd50e0eb8a6903db91700051661837612edb81:
path_to: 
revision_to: 
git.thebackupbox.net
tlswrap
git clone git://git.thebackupbox.net/tlswrap
commit 91fd50e0eb8a6903db91700051661837612edb81
Author: epoch 
Date:   Thu Feb 27 01:14:21 2025 +0000

    changed nontlswrap to remove the stupid recv peek

diff --git a/nontlswrap.c b/nontlswrap.c
index a4362d5b4d36fc5bfd5318ec7120e60488c06762..
index ..6ac5ee4584015fb6429eef940cb59097e1dc8b19 100644
--- a/nontlswrap.c
+++ b/nontlswrap.c
@@ -137,11 +137,6 @@ int main(int argc,char *argv[]) {
       break;
     }

-    if(recv(0,NULL,1, MSG_PEEK | MSG_DONTWAIT) == 0) { //make sure the TLS is still connected. :D
-      syslog(LOG_DAEMON|LOG_ERR,"non-TLS connection seems to have dropped unexpectedly.\n");
-      break;
-    }
-
     if(FD_ISSET(0,&errorfs)) syslog(LOG_DAEMON|LOG_ERR,"select: stdin error");
     if(FD_ISSET(b[0],&errorfs)) syslog(LOG_DAEMON|LOG_ERR,"select: b[0] error");
     if(FD_ISSET(c[0],&errorfs)) syslog(LOG_DAEMON|LOG_ERR,"select: c[0] error");

-----END OF PAGE-----