owncloud: Fix a possible null pointer dereference.

CID: #996827

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Klaas Freitag 2013-07-10 15:08:31 +02:00 committed by Andreas Schneider
parent 4be88b68cc
commit f552637ffd

View file

@ -650,7 +650,7 @@ static int fetch_resource_list( const char *uri,
ret = NE_CONNECT;
set_error_message(req_status->reason_phrase);
}
DEBUG_WEBDAV("Simple propfind result code %d.", req_status->code);
DEBUG_WEBDAV("Simple propfind result code %d.", req_status ? req_status->code : -1);
} else {
if( ret == NE_ERROR && req_status->code == 404) {
errno = ENOENT;