Skip to content

Commit

Permalink
fix man page
Browse files Browse the repository at this point in the history
  • Loading branch information
vanhauser-thc committed Nov 9, 2022
1 parent 972039b commit 4778a39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions hydra-mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,10 +662,10 @@ char *hydra_get_next_pair() {
pair[sizeof(pair) - 1] = 0;
__fck = read(intern_socket, pair, sizeof(pair) - 1);
// if (debug) hydra_dump_data(pair, __fck, "CHILD READ PAIR");
if (memcmp(&HYDRA_EXIT, &pair, sizeof(HYDRA_EXIT)) == 0)
return HYDRA_EXIT;
if (pair[0] == 0)
if (pair[0] == 0 || __fck <= 0)
return HYDRA_EMPTY;
if (__fck >= sizeof(HYDRA_EXIT) && memcmp(&HYDRA_EXIT, &pair, sizeof(HYDRA_EXIT)) == 0)
return HYDRA_EXIT;
}
return pair;
}
Expand Down
2 changes: 1 addition & 1 deletion pw-inspector.1
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ upcase characters (A,B,C,D, etc.)
numbers (1,2,3,4, etc.)
.TP
.B \-p
printable characters (which are not \-l/\-n/\-p, e.g. $,!,/,(,*, etc.)
printable characters (which are not \-l/\-n/\-n, e.g. $,!,/,(,*, etc.)
.TP
.B \ -s
special characters \- all others not withint the sets above
Expand Down

0 comments on commit 4778a39

Please sign in to comment.