Connection: validate whether uid and seqno is positive

fork
Sinux 9 years ago committed by Brian White
parent 941b071f80
commit 37abe764ba
No known key found for this signature in database
GPG Key ID: 606D7358F94DA209

@ -1818,8 +1818,15 @@ function validateUIDList(uids, noThrow) {
return err;
else
throw err;
} else if (typeof uids[i] !== 'number')
} else if (intval <= 0) {
var err = new Error('UID/seqno must be greater than zero');
if (noThrow)
return err;
else
throw err;
} else if (typeof uids[i] !== 'number') {
uids[i] = intval;
}
}
}

Loading…
Cancel
Save