projects
/
fwknop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
23eefbd
)
added validate_username() call to SPA packet encoding routine
author
Michael Rash
<mbr@cipherdyne.org>
Tue, 23 Oct 2012 00:31:19 +0000 (20:31 -0400)
committer
Michael Rash
<mbr@cipherdyne.org>
Tue, 23 Oct 2012 00:31:31 +0000 (20:31 -0400)
lib/fko_encode.c
patch
|
blob
|
history
diff --git
a/lib/fko_encode.c
b/lib/fko_encode.c
index
b0f09d4
..
c92d421
100644
(file)
--- a/
lib/fko_encode.c
+++ b/
lib/fko_encode.c
@@
-80,7
+80,7
@@
fko_encode_spa_data(fko_ctx_t ctx)
* (at leaset expand the error reporting for the missing
* data).
*/
- if( ctx->username == NULL || strnlen(ctx->username, MAX_SPA_USERNAME_SIZE) == 0
+ if( validate_username(ctx->username) != FKO_SUCCESS
|| ctx->version == NULL || strnlen(ctx->version, MAX_SPA_VERSION_SIZE) == 0
|| ctx->message == NULL || strnlen(ctx->message, MAX_SPA_MESSAGE_SIZE) == 0)
{