mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-21 22:03:46 -07:00
cleanup
This commit is contained in:
parent
51a47c5cf6
commit
825b3c4932
1 changed files with 9 additions and 9 deletions
18
bfg.c
18
bfg.c
|
@ -200,18 +200,18 @@ uint64_t bf_get_pcount() {
|
|||
}
|
||||
|
||||
char *bf_next() {
|
||||
int32_t i, pos = bf_options.current - 1;
|
||||
|
||||
if (bf_options.current > bf_options.to)
|
||||
return NULL; // we are done
|
||||
|
||||
int accu(int x) {
|
||||
int a = 0, b;
|
||||
for(b=1; b<x; ++b)
|
||||
a+=b;
|
||||
return a;
|
||||
}
|
||||
if ((bf_options.ptr = malloc(BF_CHARSMAX)) == NULL) {
|
||||
fprintf(stderr, "Error: Can not allocate memory for -x data!\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
char *bf_next(_Bool rainy) {
|
||||
for (i = 0; i < bf_options.current; i++)
|
||||
bf_options.ptr[i] = bf_options.crs[bf_options.state[i]];
|
||||
for(i=0; i<bf_options.current; ++i)
|
||||
bf_options.ptr[i] = bf_options.crs[bf_options.state[i]];
|
||||
bf_options.ptr[bf_options.current] = 0;
|
||||
|
||||
if (debug) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue