updates.
[crypto.git] / lib / silccrypt / silcpkcs.c
index 80ff59baa52c94921dc329846e1f2f6b023e7fab..d69ef2309d942ab6e9e1211f857b2f9532228720 100644 (file)
@@ -194,10 +194,9 @@ char *silc_pkcs_get_supported(void)
       memcpy(list + len, ",", 1);
       len++;
     }
+    list[len - 1] = 0;
   }
 
-  list[len - 1] = 0;
-
   return list;
 }