]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/clamav/serv_virus.c
* custom sockets need to work buffered too...
[citadel.git] / citadel / modules / clamav / serv_virus.c
index 31086072015039335297be1bd3c1786f13cb5dea..6aeeaa9bf3819a2654ee9085b890e634018ede97 100644 (file)
@@ -124,7 +124,7 @@ int clamd(struct CtdlMessage *msg) {
        sock_write(sock, buf, strlen(buf));
 
        CtdlLogPrintf(CTDL_DEBUG, "Waiting for PORT number\n");
-        if (sock_getln(sock, buf, sizeof buf) < 0) {
+        if (sock_getln(&sock, buf, sizeof buf) < 0) {
                 goto bail;
         }
 
@@ -172,7 +172,7 @@ int clamd(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);