projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
163b51c
)
updates.
SILC.0.1.1
author
Pekka Riikonen
<priikone@silcnet.org>
Sun, 29 Apr 2001 14:53:28 +0000
(14:53 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sun, 29 Apr 2001 14:53:28 +0000
(14:53 +0000)
apps/silcd/protocol.c
patch
|
blob
|
history
diff --git
a/apps/silcd/protocol.c
b/apps/silcd/protocol.c
index cb2e00ae7afefdc5158420e48d6553244d296818..19d521a38ee7e740a747625a908ff47076fa8bc8 100644
(file)
--- a/
apps/silcd/protocol.c
+++ b/
apps/silcd/protocol.c
@@
-158,6
+158,9
@@
SilcSKEStatus silc_ske_check_version(SilcSKE ske, unsigned char *version,
/* Check software version */
cp = version + 9;
+ if (!cp)
+ status = SILC_SKE_STATUS_BAD_VERSION;
+
maj = atoi(cp);
cp = strchr(cp, '.');
if (cp) {
@@
-171,6
+174,9
@@
SilcSKEStatus silc_ske_check_version(SilcSKE ske, unsigned char *version,
}
cp = silc_version_string + 9;
+ if (!cp)
+ status = SILC_SKE_STATUS_BAD_VERSION;
+
maj2 = atoi(cp);
cp = strchr(cp, '.');
if (cp) {