~ubuntu-branches/ubuntu/trusty/libpwquality/trusty-proposed

« back to all changes in this revision

Viewing changes to src/check.c

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2013-09-21 14:35:27 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130921143527-vr0sgijw9qmge7h9
Tags: 1.2.3-1
* New upstream release.
* Add get-orig-source target utilizing gnome-get-source.mk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
654
654
                return PWQ_ERROR_EMPTY_PASSWORD;
655
655
        }
656
656
 
 
657
        if (user && *user == '\0')
 
658
                user = NULL;
 
659
 
 
660
        if (oldpassword && *oldpassword == '\0')
 
661
                oldpassword = NULL;
 
662
 
657
663
        if (oldpassword && strcmp(oldpassword, password) == 0) {
658
664
                return PWQ_ERROR_SAME_PASSWORD;
659
665
        }