]> arthur.barton.de Git - netatalk.git/commitdiff
syncfork = vs == typo
authordidg <didg>
Wed, 25 Feb 2009 22:46:11 +0000 (22:46 +0000)
committerdidg <didg>
Wed, 25 Feb 2009 22:46:11 +0000 (22:46 +0000)
etc/afpd/fork.c

index d43ea1600f959f6b1f601c3db099dc1388e523c5..27813b1ee400a9e0efc224fb2f0e4e4904624333 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: fork.c,v 1.59 2009-02-25 22:41:03 didg Exp $
+ * $Id: fork.c,v 1.60 2009-02-25 22:46:11 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -1118,7 +1118,7 @@ int afp_syncfork(obj, ibuf, ibuflen, rbuf, rbuflen )
     memcpy(&ofrefnum, ibuf, sizeof(ofrefnum));
     ibuf += sizeof( ofrefnum );
 
-    if (NULL == ( ofork == of_find( ofrefnum )) ) {
+    if (NULL == ( ofork = of_find( ofrefnum )) ) {
         LOG(log_error, logtype_afpd, "afpd_syncfork: of_find(%d) could not locate fork", ofrefnum );
         return( AFPERR_PARAM );
     }