Improved code formatting

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
Nikos Mavrogiannopoulos
2024-12-01 20:49:05 +01:00
parent c2ddad4280
commit 318c80a326
2 changed files with 6 additions and 4 deletions

View File

@@ -31,10 +31,11 @@ int _ocserv_vasprintf(char **strp, const char *fmt, va_list ap)
int errno_save = -ENOMEM;
res = malloc(160);
if (!res)
if (!res) {
goto err;
}
/* Use a copy of 'ap', preserving it in case we need to retry into
/* Use a copy of 'ap', preserving it in case we need to retry into
a larger buffer. 160 characters should be sufficient for most
strings in openconnect. */
#ifdef HAVE_VA_COPY

View File

@@ -535,10 +535,11 @@ ciphersuite_finish:
break;
case HEADER_DTLS12_CIPHERSUITE:
if (req->use_psk || !WSCONFIG(ws)->dtls_legacy)
if (req->use_psk || !WSCONFIG(ws)->dtls_legacy) {
break;
}
/* in gnutls 3.6.0+ there is a regression which makes
/* in gnutls 3.6.0+ there is a regression which makes
* anyconnect's openssl fail: https://gitlab.com/gnutls/gnutls/merge_requests/868
*/
#ifdef gnutls_check_version_numeric