key_cb_common_func: do not issue error about connecting to sec-mod

This avoids noise during startup.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
Nikos Mavrogiannopoulos
2023-12-24 13:41:31 +01:00
parent 5fa9724955
commit 135a60e2b6

View File

@@ -695,10 +695,12 @@ int key_cb_common_func (gnutls_privkey_t key, void* userdata, const gnutls_datum
return GNUTLS_E_INTERNAL_ERROR;
}
/* This can be called early during server load when sec-mod is not
* yet available. Thus it is only a debug message. */
ret = connect(sd, (struct sockaddr *)&cdata->sa, cdata->sa_len);
if (ret == -1) {
e = errno;
oc_syslog(LOG_ERR, "error connecting to sec-mod socket '%s': %s",
oc_syslog(LOG_DEBUG, "error connecting to sec-mod socket '%s': %s",
cdata->sa.sun_path, strerror(e));
goto error;
}