mime_hdr_new: free mhdr, tmpname, tmpval on error path
[oweals/openssl.git] / crypto / asn1 / a_time.c
index 546d615c7d1afa14c86998780ce67c9ef4b55f35..7036868fcc110a1cda653bcb2f699541911f0f65 100644 (file)
@@ -64,7 +64,6 @@
 #include <stdio.h>
 #include <time.h>
 #include "cryptlib.h"
-#include "o_time.h"
 #include <openssl/asn1t.h>
 #include "asn1_locl.h"
 
@@ -225,5 +224,5 @@ int ASN1_TIME_diff(int *pday, int *psec,
                return 0;
        if (!asn1_time_to_tm(&tm_to, to))
                return 0;
-       return OPENSSL_gmtime_diff(&tm_from, &tm_to, pday, psec);
+       return OPENSSL_gmtime_diff(pday, psec, &tm_from, &tm_to);
        }