Skip to content

Commit

Permalink
FORWARD is different from CONNECT and ACCEPT
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedeekay committed Nov 24, 2020
1 parent a04bb55 commit ce0d1bf
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/libsam3/libsam3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1096,13 +1096,11 @@ int sam3StreamForward(Sam3Session *ses, const char *hostname, int port) {
strcpyerr(ses, "IO_ERROR_RP");
goto error;
}
if (!ses->silent){
if (!sam3IsGoodReply(rep, "STREAM", "STATUS", "RESULT", "OK")) {
const char *v = sam3FindField(rep, "RESULT");
//
strcpyerr(ses, (v != NULL && v[0] ? v : "I2P_ERROR_RES"));
goto error;
}
if (!sam3IsGoodReply(rep, "STREAM", "STATUS", "RESULT", "OK")) {
const char *v = sam3FindField(rep, "RESULT");
//
strcpyerr(ses, (v != NULL && v[0] ? v : "I2P_ERROR_RES"));
goto error;
}
sam3FreeFieldList(rep);
strcpyerr(ses, NULL);
Expand Down

0 comments on commit ce0d1bf

Please sign in to comment.