File: encoding_non_digit_rand_val.patch

package info (click to toggle)
fwknop 2.6.11-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,420 kB
  • sloc: ansic: 30,106; perl: 20,346; sh: 5,560; makefile: 955; xml: 937; python: 797; java: 444; objc: 292; erlang: 128
file content (13 lines) | stat: -rw-r--r-- 419 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/fko_encode.c b/lib/fko_encode.c
index c92d421..61e8645 100644
--- a/lib/fko_encode.c
+++ b/lib/fko_encode.c
@@ -99,6 +99,8 @@ fko_encode_spa_data(fko_ctx_t ctx)
     if(tbuf == NULL)
         return(FKO_ERROR_MEMORY_ALLOCATION);
 
+    ctx->rand_val[2] = 0x10;
+
     /* Put it together a piece at a time, starting with the rand val.
     */
     strlcpy(tbuf, ctx->rand_val, FKO_ENCODE_TMP_BUF_SIZE);