Skip to content

Commit

Permalink
krb4-fixes for the moved user+password fields within the structs
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Jul 21, 2003
1 parent 1722714 commit 56014e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ftp.c
Expand Up @@ -512,7 +512,7 @@ CURLcode Curl_ftp_connect(struct connectdata *conn)
/* we may need to issue a KAUTH here to have access to the files
* do it if user supplied a password
*/
if(data->state.passwd && *data->state.passwd) {
if(conn->passwd && *conn->passwd) {
result = Curl_krb_kauth(conn);
if(result)
return result;
Expand Down
2 changes: 1 addition & 1 deletion lib/krb4.c
Expand Up @@ -363,7 +363,7 @@ CURLcode Curl_krb_kauth(struct connectdata *conn)
for(; *p && *p != ' ' && *p != '\r' && *p != '\n'; p++);
*p = 0;

des_string_to_key (conn->data->state.passwd, &key);
des_string_to_key (conn->passwd, &key);
des_key_sched(&key, schedule);

des_pcbc_encrypt((void *)tkt.dat, (void *)tktcopy.dat,
Expand Down

0 comments on commit 56014e7

Please sign in to comment.