more places where we can use cm_lengths;
[citadel.git] / citadel / modules / network / serv_netspool.c
index 5b90ef23d89f40510e98920e04bc9a1922dace9d..3dfec6375a9c379d4accf83812f327ae54ac2a0a 100644 (file)
@@ -462,7 +462,7 @@ void network_process_buffer(char *buffer, long size, HashList *working_ignetcfg,
                if (strcasecmp(msg->cm_fields[eDestination], config.c_nodename)) {
 
                        /* route the message */
-                       Buf = NewStrBufPlain(msg->cm_fields[eDestination], -1);
+                       Buf = NewStrBufPlain(CM_KEY(msg,eDestination));
                        if (CtdlIsValidNode(&nexthop, 
                                            NULL, 
                                            Buf,