projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates.
[silc.git]
/
apps
/
silcd
/
command.c
diff --git
a/apps/silcd/command.c
b/apps/silcd/command.c
index ba345af6c5490c57d617570b90149cd90c2a78b2..98f1a29cbf73b1f609a36ff9455296a28e0b7756 100644
(file)
--- a/
apps/silcd/command.c
+++ b/
apps/silcd/command.c
@@
-3825,15
+3825,13
@@
SILC_SERVER_CMD_FUNC(cmode)
}
/* Save the passphrase */
}
/* Save the passphrase */
- passphrase = channel->passphrase = s
trdup(tmp
);
+ passphrase = channel->passphrase = s
ilc_memdup(tmp, strlen(tmp)
);
}
} else {
if (channel->mode & SILC_CHANNEL_MODE_PASSPHRASE) {
/* Passphrase mode is unset. remove the passphrase */
}
} else {
if (channel->mode & SILC_CHANNEL_MODE_PASSPHRASE) {
/* Passphrase mode is unset. remove the passphrase */
- if (channel->passphrase) {
- silc_free(channel->passphrase);
- channel->passphrase = NULL;
- }
+ silc_free(channel->passphrase);
+ channel->passphrase = NULL;
}
}
}
}