session wrapper UPDATE init out params
diff --git a/src/session_openssl.c b/src/session_openssl.c
index b4d0652..d49b534 100644
--- a/src/session_openssl.c
+++ b/src/session_openssl.c
@@ -1295,6 +1295,9 @@
     ASN1_STRING *asn_string_uri;
     void *tmp;
 
+    *uris = NULL;
+    *uri_count = 0;
+
     NC_CHECK_ARG_RET(NULL, cert_store, uris, uri_count, 1);
 
     /* treat all entries in the cert_store as X509_OBJECTs */