Changeset 17470
- Timestamp:
- 08/10/12 19:02:51 (11 years ago)
- Location:
- titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/tithek.h
r17468 r17470 728 728 struct splitstr* ret1 = NULL; 729 729 ret1 = strsplit(link, ";", &count); 730 if(ret1 != NULL )730 if(ret1 != NULL && count >= 4) 731 731 { 732 732 link = ostrcat(ret1[0].part, NULL, 0, 0); … … 887 887 int hlen = 0; 888 888 889 if(ret1 != NULL )889 if(ret1 != NULL && count >= 2) 890 890 { 891 891 // printf("ret1[1].part=%s\n", (ret1[1]).part); 892 hlen = strlen( (ret1[1]).part);892 hlen = strlen(ret1[1].part); 893 893 tmpstr_uni = unhexlify(ret1[1].part); 894 894 } -
titan/titan/rc4.h
r17469 r17470 9 9 }; 10 10 11 #define SWAPRC4(a, b) { unsigned char temp; temp = (a); (a) = (b); (b) = temp; }11 #define SWAPRC4(a, b) { unsigned char temp; temp = (a); (a) = (b); (b) = temp; } 12 12 13 13 void rc4init(struct rc4ctx *ctx, char *key, size_t keylen) … … 16 16 unsigned char j = 0; 17 17 18 if(key == NULL) return; 19 18 20 for(i = 0; i < sizeof(ctx->S); i++) 19 {20 21 ctx->S[i] = i; 21 }22 22 23 23 for(i = 0; i < sizeof(ctx->S); i++) … … 31 31 { 32 32 unsigned int i; 33 34 if(data == NULL) return; 33 35 34 36 ctx->i = 0;
Note: See TracChangeset
for help on using the changeset viewer.