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