]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/tls.c
pppd: Fix calloc calls (#416)
[ppp.git] / pppd / tls.c
index 8328e207dd866860b865dd3c9565b3ce427c96d6..d57e434e734a7e9a0fd0fed38fc6cbe5ebf40d30 100644 (file)
@@ -235,7 +235,7 @@ int tls_set_verify_info(SSL *ssl, const char *peer_name, const char *peer_cert,
         bool client, struct tls_info **out)
 {
     if (out != NULL) {
-        struct tls_info *tmp = calloc(sizeof(struct tls_info), 1);
+        struct tls_info *tmp = calloc(1, sizeof(struct tls_info));
         if (!tmp) {
             fatal("Allocation error");
         }