-/* $OpenBSD: application.c,v 1.37 2023/11/13 10:14:29 martijn Exp $ */
+/* $OpenBSD: application.c,v 1.38 2023/11/15 13:36:11 martijn Exp $ */
/*
* Copyright (c) 2021 Martijn van Duren <martijn@openbsd.org>
return APPL_ERROR_UNSUPPORTEDCONTEXT;
}
- if ((cap = malloc(sizeof(*ctx))) == NULL) {
+ if ((cap = malloc(sizeof(*cap))) == NULL) {
log_warn("%s: Can't add agent capabilities %s",
backend->ab_name, oidbuf);
return APPL_ERROR_PROCESSINGERROR;