projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
51d0183
)
insert missing call to gss_eap_attr_ctx constructor
author
Luke Howard
<lukeh@padl.com>
Sat, 18 Sep 2010 16:04:24 +0000
(18:04 +0200)
committer
Luke Howard
<lukeh@padl.com>
Sat, 18 Sep 2010 16:04:24 +0000
(18:04 +0200)
util_attr.cpp
patch
|
blob
|
history
diff --git
a/util_attr.cpp
b/util_attr.cpp
index
398aa57
..
681dc5f
100644
(file)
--- a/
util_attr.cpp
+++ b/
util_attr.cpp
@@
-560,10
+560,12
@@
gssEapExportAttrContext(OM_uint32 *minor,
buffer->value = NULL;
return GSS_S_COMPLETE;
buffer->value = NULL;
return GSS_S_COMPLETE;
- }
;
+ }
try {
name->attrCtx->exportToBuffer(buffer);
try {
name->attrCtx->exportToBuffer(buffer);
+ if (buffer->length == 0)
+ return GSS_S_FAILURE;
} catch (std::exception &e) {
return mapException(minor, e);
}
} catch (std::exception &e) {
return mapException(minor, e);
}
@@
-582,7
+584,7
@@
gssEapImportAttrContext(OM_uint32 *minor,
if (buffer->length != 0) {
try {
if (buffer->length != 0) {
try {
- ctx = new gss_eap_attr_ctx;
+ ctx = new gss_eap_attr_ctx
()
;
if (!ctx->initFromBuffer(NULL, buffer)) {
delete ctx;
if (!ctx->initFromBuffer(NULL, buffer)) {
delete ctx;
@@
-609,6
+611,7
@@
gssEapDuplicateAttrContext(OM_uint32 *minor,
try {
if (in->attrCtx != NULL) {
try {
if (in->attrCtx != NULL) {
+ ctx = new gss_eap_attr_ctx();
if (!ctx->initFromExistingContext(NULL, in->attrCtx)) {
delete ctx;
return GSS_S_FAILURE;
if (!ctx->initFromExistingContext(NULL, in->attrCtx)) {
delete ctx;
return GSS_S_FAILURE;
@@
-706,7
+709,7
@@
gssEapCreateAttrContext(gss_cred_id_t gssCred,
{
gss_eap_attr_ctx *ctx;
{
gss_eap_attr_ctx *ctx;
- ctx = new gss_eap_attr_ctx;
+ ctx = new gss_eap_attr_ctx
()
;
if (!ctx->initFromGssContext(NULL, gssCred, gssCtx)) {
delete ctx;
return NULL;
if (!ctx->initFromGssContext(NULL, gssCred, gssCtx)) {
delete ctx;
return NULL;