Reviewed code for X-Sendfile2
Reviewed code for X-Sendfile2

Made some small changes which might have caused a segfault on ci.tmit.eu earlier.
Ardinis/server,xx621998xx/server,pmattern/server,cernbox/core,lrytz/core,IljaN/core,xx621998xx/server,michaelletzgus/nextcloud-server,bluelml/core,pixelipo/server,pixelipo/server,sharidas/core,whitekiba/server,pmattern/server,whitekiba/server,nextcloud/server,pmattern/server,jbicha/server,endsguy/server,andreas-p/nextcloud-server,endsguy/server,bluelml/core,owncloud/core,phil-davis/core,andreas-p/nextcloud-server,IljaN/core,lrytz/core,andreas-p/nextcloud-server,pixelipo/server,owncloud/core,michaelletzgus/nextcloud-server,lrytz/core,endsguy/server,jbicha/server,michaelletzgus/nextcloud-server,Ardinis/server,bluelml/core,IljaN/core,pollopolea/core,jbicha/server,pmattern/server,lrytz/core,pixelipo/server,lrytz/core,xx621998xx/server,pollopolea/core,pollopolea/core,IljaN/core,xx621998xx/server,cernbox/core,endsguy/server,sharidas/core,pixelipo/server,andreas-p/nextcloud-server,sharidas/core,pollopolea/core,andreas-p/nextcloud-server,owncloud/core,nextcloud/server,michaelletzgus/nextcloud-server,pmattern/server,pollopolea/core,Ardinis/server,owncloud/core,cernbox/core,owncloud/core,sharidas/core,Ardinis/server,cernbox/core,whitekiba/server,jbicha/server,whitekiba/server,cernbox/core,sharidas/core,nextcloud/server,endsguy/server,Ardinis/server,bluelml/core,xx621998xx/server,nextcloud/server,IljaN/core,jbicha/server,whitekiba/server,bluelml/core