forked from github/server
null-pointer check (coverity result)
This commit is contained in:
parent
52e517b98d
commit
2b0a2750ba
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ int password_verify(const char * pwhash, const char * passwd) {
|
||||||
assert(pwhash[0] == '$');
|
assert(pwhash[0] == '$');
|
||||||
algo = pwhash[1] - '0';
|
algo = pwhash[1] - '0';
|
||||||
pos = strchr(pwhash+2, '$');
|
pos = strchr(pwhash+2, '$');
|
||||||
assert(pos[0] == '$');
|
assert(pos && pos[0] == '$');
|
||||||
++pos;
|
++pos;
|
||||||
dol = strchr(pos, '$');
|
dol = strchr(pos, '$');
|
||||||
assert(dol>pos && dol[0] == '$');
|
assert(dol>pos && dol[0] == '$');
|
||||||
|
|
Loading…
Reference in a new issue