* custom sockets need to work buffered too...
[citadel.git] / citadel / modules / spam / serv_spam.c
index 7868545ad591194af0b996e1e0b68855f9d1b0a6..7ff266dea300b71a38d91f492a2b81849f042004 100644 (file)
@@ -133,14 +133,14 @@ int spam_assassin(struct CtdlMessage *msg) {
        
        /* Response */
        CtdlLogPrintf(CTDL_DEBUG, "Awaiting response\n");
-        if (sock_getln(sock, buf, sizeof buf) < 0) {
+        if (sock_getln(&sock, buf, sizeof buf) < 0) {
                 goto bail;
         }
         CtdlLogPrintf(CTDL_DEBUG, "<%s\n", buf);
        if (strncasecmp(buf, "SPAMD", 5)) {
                goto bail;
        }
-        if (sock_getln(sock, buf, sizeof buf) < 0) {
+        if (sock_getln(&sock, buf, sizeof buf) < 0) {
                 goto bail;
         }
         CtdlLogPrintf(CTDL_DEBUG, "<%s\n", buf);