---
name: "libressl-ERR_clear_error"
section: "3"
platform: "linux"
package: "libressl"
version: "4.4.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libressl-ERR_clear_error"
---

# libressl-ERR\_clear\_error(3)

clear the OpenSSL error queue

## NAME

**ERR\_clear\_error** – clear the OpenSSL error queue

## SYNOPSIS

Crypto Library (libcrypto, -lcrypto)

**#include \<openssl/err.h\>**

*void*\

**ERR\_clear\_error**(*void*);

## DESCRIPTION

**ERR\_clear\_error**() empties the current thread's error queue.

## SEE ALSO

ERR(3), ERR\_get\_error(3)

## HISTORY

**ERR\_clear\_error**() first appeared in SSLeay 0.4.4 and has been available since OpenBSD 2.4.
