Fixed segfault issue when spa_data_final was called before spa_message was set.
git-svn-id: file:///home/mbr/svn/fwknop/trunk@77 510a4753-2344-4c79-9c09-4d669213fbeb
This commit is contained in:
@@ -274,7 +274,7 @@ are not base64-encoded):
|
||||
|
||||
@sp 1
|
||||
@example
|
||||
8307540982176539:juser:1230665172:1.1.10:0.0.0.0,tcp/22:192.168.1.2,22:
|
||||
8307540982176539:juser:1230665172:1.1.10:1:0.0.0.0,tcp/22:192.168.1.2,22:
|
||||
crypt,mypw:120:xswj8V0zMR7/7MV9pQRarSKWG1l9Zfjv+kbXaKrJ+RA
|
||||
@end example
|
||||
@sp 1
|
||||
|
||||
@@ -349,6 +349,9 @@ fko_encrypt_spa_data(fko_ctx_t ctx, char *enc_key)
|
||||
if(ctx->encoded_msg == NULL || FKO_IS_SPA_DATA_MODIFIED(ctx))
|
||||
res = fko_encode_spa_data(ctx);
|
||||
|
||||
if(res)
|
||||
goto EWIPEOUT;
|
||||
|
||||
/* Croak on invalid encoded message as well. At present this is a
|
||||
* check for a somewhat arbitrary minimum length for the encoded
|
||||
* data.
|
||||
|
||||
Reference in New Issue
Block a user