X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilcfdstream.c;h=1ae8d413ca730fd7c67880522ea7604052edcd69;hp=a618c63421c1c5921df3ff17b49f053010e48602;hb=929798ea2747657e5834da459d4abb9bb41d71b0;hpb=7f2e2c591c48f80822808759d12958769a323536 diff --git a/lib/silcutil/silcfdstream.c b/lib/silcutil/silcfdstream.c index a618c634..1ae8d413 100644 --- a/lib/silcutil/silcfdstream.c +++ b/lib/silcutil/silcfdstream.c @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 2005 - 2007 Pekka Riikonen + Copyright (C) 2005 - 2008 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,7 +21,7 @@ /************************** Types and definitions ***************************/ -#define SILC_IS_FD_STREAM(s) (s->ops == &silc_fd_stream_ops) +#define SILC_IS_FD_STREAM(s) (s && s->ops == &silc_fd_stream_ops) const SilcStreamOps silc_fd_stream_ops;