Skip to content

Commit

Permalink
ticket: 3904
Browse files Browse the repository at this point in the history
version_fixed: 1.5.1

pull up r18404 from trunk

 r18404@cathode-dark-space:  tlyu | 2006-08-02 16:51:50 -0400
 ticket: 3904
 tags: pullup
 
 Apply patch from Michael Calmer to fix some uninitialized variables.
 
 	* src/appl/gssftp/ftpd/ftpd.c (auth_data): Initialize stat_maj,
 	accept_maj, acquire_maj.
 
 	* src/appl/telnet/libtelnet/kerberos5.c (kerberos5_send):
 	Intialize rdata.
 
 	* src/kdc/do_tgs_req.c (process_tgs_req): Initialize magic and
 	tr_contents.magic.
 
 	* src/lib/krb5/asn.1/krb5_decode.c (decode_krb5_safe_with_body):
 	Initialize tmpbody.magic.
 
 	* src/plugins/kdb/db2/libdb2/hash/dbm.c (kdb2_fetch) 
 	(kdb2_firstkey, kdb2_nextkey): Initialize dsize.
 
 



git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-5@18408 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information
tlyu committed Aug 7, 2006
1 parent 5eb363e commit 08a98e4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/appl/gssftp/ftpd/ftpd.c
Expand Up @@ -2389,7 +2389,9 @@ char *adata;
char service_name[MAXHOSTNAMELEN+10];
char **gservice;
struct hostent *hp;

stat_maj = 0;
accept_maj = 0;
acquire_maj = 0;

kerror = radix_encode(adata, gout_buf, &length, 1);
if (kerror) {
Expand Down
1 change: 1 addition & 0 deletions src/appl/telnet/libtelnet/kerberos5.c
Expand Up @@ -260,6 +260,7 @@ kerberos5_send(ap)
if (telnet_krb5_realm != NULL) {
krb5_data rdata;

rdata.magic = 0;
rdata.length = strlen(telnet_krb5_realm);
rdata.data = (char *) malloc(rdata.length + 1);
if (rdata.data == NULL) {
Expand Down
2 changes: 2 additions & 0 deletions src/kdc/do_tgs_req.c
Expand Up @@ -474,6 +474,8 @@ process_tgs_req(krb5_data *pkt, const krb5_fulladdr *from,
goto cleanup;
}
enc_tkt_transited.tr_type = KRB5_DOMAIN_X500_COMPRESS;
enc_tkt_transited.magic = 0;
enc_tkt_transited.tr_contents.magic = 0;
enc_tkt_transited.tr_contents.data = 0;
enc_tkt_transited.tr_contents.length = 0;
enc_tkt_reply.transited = enc_tkt_transited;
Expand Down
1 change: 1 addition & 0 deletions src/lib/krb5/asn.1/krb5_decode.c
Expand Up @@ -526,6 +526,7 @@ krb5_error_code decode_krb5_safe_with_body(
setup();
alloc_field(*rep,krb5_safe);
clear_field(rep,checksum);
tmpbody.magic = 0;

check_apptag(20);
{ begin_structure();
Expand Down
3 changes: 3 additions & 0 deletions src/plugins/kdb/db2/libdb2/hash/dbm.c
Expand Up @@ -90,6 +90,7 @@ kdb2_fetch(key)
if (__cur_db == NULL) {
no_open_db();
item.dptr = 0;
item.dsize = 0;
return (item);
}
return (kdb2_dbm_fetch(__cur_db, key));
Expand All @@ -103,6 +104,7 @@ kdb2_firstkey()
if (__cur_db == NULL) {
no_open_db();
item.dptr = 0;
item.dsize = 0;
return (item);
}
return (kdb2_dbm_firstkey(__cur_db));
Expand All @@ -117,6 +119,7 @@ kdb2_nextkey(key)
if (__cur_db == NULL) {
no_open_db();
item.dptr = 0;
item.dsize = 0;
return (item);
}
return (kdb2_dbm_nextkey(__cur_db));
Expand Down

0 comments on commit 08a98e4

Please sign in to comment.