Fix the infinite loop on brought connection.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 8 Jun 2006 15:36:00 +0000 (15:36 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 8 Jun 2006 15:36:00 +0000 (15:36 +0000)
org.glite.security.gsoap-plugin/src/glite_gss.c

index 02dc1bb..6ae8396 100644 (file)
@@ -382,7 +382,7 @@ recv_token(int sock, void **token, size_t *token_length, struct timeval *to)
         expect = ssl_token_length(t, tl);
       }
 
-   } while ((count == 0) || (tl < expect));
+   } while (count != 0 && tl < expect);
 
 end:
    if (to) {