Skip to content

Commit

Permalink
onionready: always refer warnnear
Browse files Browse the repository at this point in the history
  • Loading branch information
cathugger committed Sep 5, 2023
1 parent 6c704d2 commit 4cc50f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ static void onionready(char *sname,const u8 *secret,const u8 *pubonion,int warnn
strcpy(&sname[onionendpos],pwarn);
const size_t oprintlen = printlen;
const size_t printlen = oprintlen + (warnnear ? strlen(pwarn)-1 : 0);
#else
(void) warnnear;
#endif
fwrite(&sname[printstartpos],printlen,1,fout);
fflush(fout);
Expand Down

0 comments on commit 4cc50f4

Please # to comment.