Giter VIP home page Giter VIP logo

Comments (5)

ThomasHabets avatar ThomasHabets commented on July 28, 2024

Comment #1 originally posted by valient on 2011-01-18T08:36:04.000Z:

Looks like the following change to pam_google_authenticator.c fixes it:

@@ -439,6 +440,7 @@
// remove it from the file.
if (blocked - tm > 3 || tm - blocked > 3) {
endptr += strspn(endptr, " \t");

  •  ptr += strspn(ptr, " \t");
    
    memmove(ptr, endptr, strlen(endptr) + 1);
    memset(strrchr(ptr, '\000'), 0, endptr - ptr + 1);
    } else {

from google-authenticator.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

Comment #2 originally posted by vittgam on 2011-02-27T16:29:39.000Z:

I've fixed this issue at https://github.com/VittGam/google-authenticator following comment 1 suggestion.

from google-authenticator.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

Comment #3 originally posted by [email protected] on 2011-03-09T20:35:17.000Z:

<empty>

from google-authenticator.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

Comment #4 originally posted by [email protected] on 2011-03-09T20:35:51.000Z:

Issue 28 has been merged into this issue.

from google-authenticator.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

Comment #5 originally posted by [email protected] on 2011-03-10T08:47:21.000Z:

This is now tested for in the unittest and fixed in the code. Thank you for the very detailed bug report and for even attaching a patch. I ended up fixing things a little differently, but the patch helped in explaining the bug.

from google-authenticator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.