Failed GETRES() writes to output buffer in client/server mode
In client/server mode, a GETRES() call that failed (because no matching resource was found) wrote random bytes to the output buffer (bufptr parameter). The logic has been modified to correct this issue.