# HG changeset patch # User Olaf Wintermann # Date 1552145399 -3600 # Node ID 3d02420c4392e59db7874451777fec1671b40c80 # Parent 27382d82c8b398c3c25d9983c68229d5d9ae8a9f fix null pointer dereferenciation diff -r 27382d82c8b3 -r 3d02420c4392 libidav/resource.c --- a/libidav/resource.c Tue Nov 13 21:16:27 2018 +0100 +++ b/libidav/resource.c Sat Mar 09 16:29:59 2019 +0100 @@ -82,7 +82,7 @@ DavResource* dav_resource_new_full(DavSession *sn, char *parent_path, char *name, char *href) { sstr_t n = sstr(name); // the name must not contain path separators - if(n.length > 0) { + if(n.length > 0 && href) { for(int i=0;i