]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/volume.c
afpd: Return the correct error for non-existent volume
[netatalk.git] / etc / afpd / volume.c
index 3a057dbcb006e8458699de9e3a23098dcd06768e..8fca00067aad13e1bde15d08d8bd8a508ac94bbf 100644 (file)
@@ -746,7 +746,7 @@ int afp_openvol(AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf, size_t
     }
 
     if ( volume == NULL ) {
-        return AFPERR_PARAM;
+        return AFPERR_NOOBJ;
     }
 
     /* check for a volume password */