mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-09 08:16:58 +08:00
Improved code formatting
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user