From 79902b38edb3b9a00c58fb48cc59df09623b6fbd Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 29 Dec 2004 10:13:55 +0000
Subject: [PATCH] smb_addmsg() now initializes the idx record in an smbmsg_t
 using smb_init_idx().

---
 src/smblib/smbadd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/smblib/smbadd.c b/src/smblib/smbadd.c
index 7d7985001c..6b7ba9c6a1 100644
--- a/src/smblib/smbadd.c
+++ b/src/smblib/smbadd.c
@@ -244,7 +244,7 @@ int SMBCALL smb_addmsg(smb_t* smb, smbmsg_t* msg, int storage, long dupechk_hash
 		}
 		if(msg->hdr.when_written.time==0)	/* Uninitialized */
 			msg->hdr.when_written = msg->hdr.when_imported;
-		msg->idx.time=msg->hdr.when_imported.time;
+		smb_init_idx(smb,msg);
 
 		/* Look-up thread_back if RFC822 Reply-ID was specified */
 		if(msg->hdr.thread_back==0 && msg->reply_id!=NULL) {
-- 
GitLab