fix crash in dns code with new stdio locking code
[musl] / src / stdio / __fopen_rb_ca.c
index 4ba50d6..89ccbc3 100644 (file)
@@ -13,6 +13,7 @@ FILE *__fopen_rb_ca(const char *filename, FILE *f, unsigned char *buf, size_t le
        f->read = __stdio_read;
        f->seek = __stdio_seek;
        f->close = __stdio_close;
+       f->lock = -1;
 
        return f;
 }