Check for FindNextFile when defining it rather than FindFirstFile
[oweals/openssl.git] / crypto / asn1 / bio_ndef.c
index 96074802d39df3189530e193e1210bc101087aa5..b91f97a1b139cae276cedfe199bede8aac7a2f41 100644 (file)
@@ -57,9 +57,6 @@
 #include <openssl/bio.h>
 #include <openssl/err.h>
 
-#ifndef OPENSSL_SYSNAME_NETWARE
-#include <memory.h>
-#endif
 #include <stdio.h>
 
 /* Experimental NDEF ASN1 BIO support routines */
@@ -108,7 +105,7 @@ BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it)
        const ASN1_AUX *aux = it->funcs;
        ASN1_STREAM_ARG sarg;
 
-       if (!aux && !aux->asn1_cb)
+       if (!aux || !aux->asn1_cb)
                {
                ASN1err(ASN1_F_BIO_NEW_NDEF, ASN1_R_STREAMING_NOT_SUPPORTED);
                return NULL;