projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed outoing packet queue handling bug on very high load.
[silc.git]
/
lib
/
silcutil
/
unix
/
silcunixutil.c
diff --git
a/lib/silcutil/unix/silcunixutil.c
b/lib/silcutil/unix/silcunixutil.c
index 3dddce37eb49bb17088b03f24b6819204d6d924b..8cb6a723f10db57e57b256888d35e5f8aa600ef1 100644
(file)
--- a/
lib/silcutil/unix/silcunixutil.c
+++ b/
lib/silcutil/unix/silcunixutil.c
@@
-116,6
+116,9
@@
int silc_string_match(const char *string1, const char *string2)
char *s1;
int ret = FALSE;
+ if (!string1 || !string2)
+ return ret;
+
s1 = silc_string_regexify(string1);
ret = silc_string_regex_match(s1, string2);
silc_free(s1);
@@
-147,7
+150,7
@@
char *silc_get_username()
}
return strdup(logname);
-}
+}
/* Returns the real name of ther user. */