psgi_loader: make sure that at least two params are passed to XS_input_seek()

This commit is contained in:
Ivan Kruglov
2015-03-09 11:36:06 +01:00
committed by Unbit
parent ca68d6938a
commit cce041c7f0
+1 -1
View File
@@ -11,7 +11,7 @@ XS(XS_input_seek) {
dXSARGS;
struct wsgi_request *wsgi_req = current_wsgi_req();
psgi_check_args(1);
psgi_check_args(2);
uwsgi_request_body_seek(wsgi_req, SvIV(ST(1)));
XSRETURN(0);