Use plain copy instead of stealBuf() in searchinput

This commit is contained in:
Ivan Skytte Jørgensen
2016-11-07 14:02:27 +01:00
parent 34c197e300
commit 9e8fc9c785

@ -183,9 +183,7 @@ bool SearchInput::set ( TcpSocket *sock , HttpRequest *r ) {
// zero out everything, set niceness to 0
clear ( 0 ) ;
// still his buffer. m_hr will free the stuff, but "r" can
// still access it for the time being, and not free it
m_hr.stealBuf ( r );
m_hr.copy(r);
const char *coll = g_collectiondb.getDefaultColl ( r );