Changeset 5535a47
- Timestamp:
- 2015-05-07T23:12:06Z (10 years ago)
- Branches:
- master
- Children:
- 088b070
- Parents:
- 81a15da
- git-author:
- dequis <dx@…> (07-05-15 23:04:47)
- git-committer:
- dequis <dx@…> (07-05-15 23:12:06)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_im.c
r81a15da r5535a47 50 50 51 51 memset(nick, 0, MAX_NICK_LENGTH + 1); 52 str cpy(nick, nick_get(bu));52 strncpy(nick, nick_get(bu), MAX_NICK_LENGTH); 53 53 54 54 bu->ui_data = iu = irc_user_new(irc, nick); … … 723 723 g_free(channel); 724 724 channel = s; 725 } else { 726 g_free(s); 725 727 } 726 728 } -
lib/oauth2.c
r81a15da r5535a47 140 140 struct oauth2_access_token_data *cb_data = req->data; 141 141 char *atoken = NULL, *rtoken = NULL, *error = NULL; 142 char *content_type ;142 char *content_type = NULL; 143 143 144 if (getenv("BITLBEE_DEBUG") && req->reply_body) { 144 if (req->status_code <= 0 && !req->reply_body) { 145 cb_data->func(cb_data->data, NULL, NULL, req->status_string); 146 g_free(cb_data); 147 return; 148 } 149 150 if (getenv("BITLBEE_DEBUG")) { 145 151 printf("%s\n", req->reply_body); 146 152 } -
protocols/jabber/jabber.c
r81a15da r5535a47 428 428 } 429 429 430 jabber_get_vcard(ic, bud ? bud->full_jid :who);430 jabber_get_vcard(ic, who); 431 431 } 432 432 -
unix.c
r81a15da r5535a47 212 212 argv[0], argv[0], argv[0], argv[0], argv[0]); 213 213 } else if (strcmp(argv[2], "enc") == 0) { 214 pass_len = arc_encode(argv[4], strlen(argv[4]), (unsigned char **) &pass_cr, argv[3], 12); 215 printf("%s\n", base64_encode(pass_cr, pass_len)); 214 char *encoded; 215 216 pass_len = arc_encode(argv[4], strlen(argv[4]), &pass_cr, argv[3], 12); 217 218 encoded = base64_encode(pass_cr, pass_len); 219 printf("%s\n", encoded); 220 g_free(encoded); 221 g_free(pass_cr); 216 222 } else if (strcmp(argv[2], "dec") == 0) { 217 pass_len = base64_decode(argv[4], (unsigned char **)&pass_cr);223 pass_len = base64_decode(argv[4], &pass_cr); 218 224 arc_decode(pass_cr, pass_len, (char **) &pass_cl, argv[3]); 219 225 printf("%s\n", pass_cl); 226 227 g_free(pass_cr); 228 g_free(pass_cl); 220 229 } else if (strcmp(argv[2], "hash") == 0) { 221 230 md5_byte_t pass_md5[21]; 222 231 md5_state_t md5_state; 232 char *encoded; 223 233 224 234 random_bytes(pass_md5 + 16, 5); … … 228 238 md5_finish(&md5_state, pass_md5); 229 239 230 printf("%s\n", base64_encode(pass_md5, 21)); 240 encoded = base64_encode(pass_md5, 21); 241 printf("%s\n", encoded); 242 g_free(encoded); 231 243 } else if (strcmp(argv[2], "unhash") == 0) { 232 244 printf("Hash %s submitted to a massive Beowulf cluster of\n"
Note: See TracChangeset
for help on using the changeset viewer.