projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45a162f
)
Fixed typo in copy_addrs; a set of curly braces was missing
author
Theodore Tso
<tytso@mit.edu>
Wed, 1 Dec 1993 22:21:52 +0000
(22:21 +0000)
committer
Theodore Tso
<tytso@mit.edu>
Wed, 1 Dec 1993 22:21:52 +0000
(22:21 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3057
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/krb/copy_addrs.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/krb/copy_addrs.c
b/src/lib/krb5/krb/copy_addrs.c
index b1551395a7452a52f657c43a53832c4636bc7694..c297657d02ba813f5df4e71f06ddbe8f35825a08 100644
(file)
--- a/
src/lib/krb5/krb/copy_addrs.c
+++ b/
src/lib/krb5/krb/copy_addrs.c
@@
-76,12
+76,13
@@
krb5_address ***outaddr;
if (!(tempaddr = (krb5_address **) calloc(nelems+1, sizeof(*tempaddr))))
return ENOMEM;
- for (nelems = 0; inaddr[nelems]; nelems++)
+ for (nelems = 0; inaddr[nelems]; nelems++)
{
retval = krb5_copy_addr(inaddr[nelems], &tempaddr[nelems]);
if (retval) {
krb5_free_addresses(tempaddr);
return retval;
}
+ }
*outaddr = tempaddr;
return 0;