summaryrefslogtreecommitdiff
path: root/imap
diff options
context:
space:
mode:
Diffstat (limited to 'imap')
-rw-r--r--imap/src/c-client/imap4r1.c2
-rw-r--r--imap/src/c-client/nntp.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/imap/src/c-client/imap4r1.c b/imap/src/c-client/imap4r1.c
index 9c72e642..f35b14b4 100644
--- a/imap/src/c-client/imap4r1.c
+++ b/imap/src/c-client/imap4r1.c
@@ -360,7 +360,7 @@ void *imap_parameters (long function,void *value)
if (((IMAPLOCAL *) ((MAILSTREAM *) value)->local)->cap.namespace &&
!((IMAPLOCAL *) ((MAILSTREAM *) value)->local)->namespace)
imap_send (((MAILSTREAM *) value),"NAMESPACE",NIL);
- value = (void *) ((IMAPLOCAL *) ((MAILSTREAM *) value)->local)->namespace;
+ value = (void *) &((IMAPLOCAL *) ((MAILSTREAM *) value)->local)->namespace;
break;
case GET_THREADERS:
value = (void *)
diff --git a/imap/src/c-client/nntp.c b/imap/src/c-client/nntp.c
index 1607db81..dd2b8604 100644
--- a/imap/src/c-client/nntp.c
+++ b/imap/src/c-client/nntp.c
@@ -704,6 +704,11 @@ MAILSTREAM *nntp_mopen (MAILSTREAM *stream)
(stream->debug ? NOP_DEBUG : NIL)))) return NIL;
}
+ if(!nstream->netstream){
+ mm_log (nstream->reply,ERROR);
+ nntp_close (nstream); /* punt stream */
+ return NIL;
+ }
/* always zero messages if halfopen */
if (stream->halfopen) i = j = k = rnmsgs = nmsgs = 0;
/* otherwise open the newsgroup */