fixed dav_context_get_key

Mon, 21 Mar 2016 16:15:23 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 21 Mar 2016 16:15:23 +0100
changeset 229
df158262f802
parent 228
c0175372c35d
child 230
fdcbde1d7d65

fixed dav_context_get_key

dav/main.c file | annotate | diff | comparison | revisions
libidav/webdav.c file | annotate | diff | comparison | revisions
--- a/dav/main.c	Mon Mar 21 13:56:16 2016 +0100
+++ b/dav/main.c	Mon Mar 21 16:15:23 2016 +0100
@@ -188,7 +188,7 @@
     fprintf(stderr, "        -O         override resources\n");
     fprintf(stderr, "        -L <lock>  specificy lock token\n");
     fprintf(stderr, "        -n <uri>   specify namespace uri\n");
-    fprintf(stderr, "        -N         disable authentication and key input (all commands)\n");
+    fprintf(stderr, "        -N         disable authentication prompt (all commands)\n");
     fprintf(stderr, "        -i         disable cert verification (all commands)\n");
     fprintf(stderr, "        -v         verbose output (all commands)\n");
     fprintf(stderr, "\n");
--- a/libidav/webdav.c	Mon Mar 21 13:56:16 2016 +0100
+++ b/libidav/webdav.c	Mon Mar 21 16:15:23 2016 +0100
@@ -184,7 +184,9 @@
 }
 
 DavKey* dav_context_get_key(DavContext *context, char *name) {
-    return ucx_map_cstr_get(context->keys, name);
+    if(name) {
+        return ucx_map_cstr_get(context->keys, name);
+    }
 }
 
 int dav_add_namespace(DavContext *context, char *prefix, char *name) {

mercurial